• Home
  • Raw
  • Download

Lines Matching full:binary

38     // Get the size of the resulting binary (only one device)  in test_binary_get()
40 test_error( error, "Unable to get binary size" ); in test_binary_get()
45 log_error( "ERROR: Binary size of program is zero\n" ); in test_binary_get()
49 // Create a buffer and get the actual binary in test_binary_get()
50 unsigned char *binary; in test_binary_get() local
51 binary = (unsigned char*)malloc(sizeof(unsigned char)*binarySize); in test_binary_get()
52 unsigned char *buffers[ 1 ] = { binary }; in test_binary_get()
61 free(binary); in test_binary_get()
66 test_error( error, "Unable to get program binary" ); in test_binary_get()
68 // No way to verify the binary is correct, so just be good with that in test_binary_get()
69 free(binary); in test_binary_get()
77 source, then get the binary, then use that binary to reload the program, and then verify */ in test_binary_create()
87 // Get the size of the resulting binary (only one device) in test_binary_create()
89 test_error( error, "Unable to get binary size" ); in test_binary_create()
94 log_error( "ERROR: Binary size of program is zero\n" ); in test_binary_create()
98 // Create a buffer and get the actual binary in test_binary_create()
99 unsigned char *binary = (unsigned char*)malloc(binarySize); in test_binary_create() local
100 const unsigned char *buffers[ 1 ] = { binary }; in test_binary_create()
103 test_error( error, "Unable to get program binary" ); in test_binary_create()
107 test_error( error, "Unable to load valid program binary" ); in test_binary_create()
108 test_error( loadErrors[ 0 ], "Unable to load valid device binary into program" ); in test_binary_create()
111 test_error( error, "Unable to build binary program" ); in test_binary_create()
113 // Get the size of the binary built from the first binary in test_binary_create()
116 test_error( error, "Unable to get size for the binary program" ); in test_binary_create()
118 // Now get the binary one more time and verify it loaded the right binary in test_binary_create()
122 test_error( error, "Unable to get program binary second time" ); in test_binary_create()
125 // get a valid binary in test_binary_create()
127 test_error( error, "Unable to load valid program binary when binary_status pointer is NULL" ); in test_binary_create()
130 test_error( error, "Unable to build binary program created without binary_status" ); in test_binary_create()
132 // Get the size of the binary created without passing binary_status in test_binary_create()
135 test_error( error, "Unable to get size for the binary program created without binary_status" ); in test_binary_create()
137 // Now get the binary one more time in test_binary_create()
141 …test_error( error, "Unable to get program binary from the program created without binary_status" ); in test_binary_create()
144 free(binary); in test_binary_create()
176 test_error( error, "clCreateKernel from binary failed"); in test_binary_create()
192 test_error( error, "clEnqueueNDRangeKernel for binary kernel failed"); in test_binary_create()
207 log_error( "ERROR: Results from executing binary and regular kernel differ.\n" ); in test_binary_create()