/dports/net/gnu-radius/radius-1.6.1/lib/ |
H A D | gethost_r.c | 30 store_hostent(struct hostent *h_in, in LOCK_DECLARE() 43 *h_out = *h_in; in LOCK_DECLARE() 45 len = strlen(h_in->h_name) + 1; in LOCK_DECLARE() 48 for (i = 0; h_in->h_aliases[i]; i++) in LOCK_DECLARE() 53 for (i = 0; h_in->h_addr_list[i]; i++) in LOCK_DECLARE() 71 memcpy(base, h_in->h_addr_list[i], h_in->h_length); in LOCK_DECLARE() 73 base += h_in->h_length; in LOCK_DECLARE() 77 h_in->h_addr = buf; in LOCK_DECLARE() 78 memcpy(h_in->h_addr, h_out->h_addr, h_in->h_length); in LOCK_DECLARE() 79 buf += h_in->h_length; in LOCK_DECLARE() [all …]
|
/dports/misc/xgboost/xgboost-1.5.1/cub/examples/device/ |
H A D | example_device_reduce.cu | 68 int *h_in, in Initialize() argument 72 h_in[i] = i; in Initialize() 77 DisplayResults(h_in, num_items); in Initialize() 87 int *h_in, in Solve() argument 94 h_reference = h_in[0]; in Solve() 96 h_reference += h_in[i]; in Solve() 136 int* h_in = new int[num_items]; in main() local 140 Initialize(h_in, num_items); in main() 141 Solve(h_in, h_reference, num_items); in main() 148 CubDebugExit(cudaMemcpy(d_in, h_in, sizeof(int) * num_items, cudaMemcpyHostToDevice)); in main() [all …]
|
H A D | example_device_select_unique.cu | 70 int *h_in, in Initialize() argument 88 h_in[j] = key; in Initialize() 99 DisplayResults(h_in, num_items); in Initialize() 109 int *h_in, in Solve() argument 116 h_reference[num_selected] = h_in[0]; in Solve() 122 if (h_in[i] != h_in[i - 1]) in Solve() 124 h_reference[num_selected] = h_in[i]; in Solve() 167 int* h_in = new int[num_items]; in main() local 171 Initialize(h_in, num_items, max_segment); in main() 172 int num_selected = Solve(h_in, h_reference, num_items); in main() [all …]
|
H A D | example_device_scan.cu | 69 int *h_in, in Initialize() argument 73 h_in[i] = i; in Initialize() 78 DisplayResults(h_in, num_items); in Initialize() 87 int *h_in, in Solve() argument 97 inclusive += h_in[i]; in Solve() 98 aggregate += h_in[i]; in Solve() 141 int* h_in = new int[num_items]; in main() local 145 Initialize(h_in, num_items); in main() 146 Solve(h_in, h_reference, num_items); in main() 153 CubDebugExit(cudaMemcpy(d_in, h_in, sizeof(int) * num_items, cudaMemcpyHostToDevice)); in main() [all …]
|
H A D | example_device_partition_if.cu | 84 int *h_in, in Initialize() argument 102 h_in[j] = key; in Initialize() 113 DisplayResults(h_in, num_items); in Initialize() 124 int *h_in, in Solve() argument 132 if (select_op(h_in[i])) in Solve() 134 h_reference[num_selected] = h_in[i]; in Solve() 139 h_reference[num_items - (i - num_selected) - 1] = h_in[i]; in Solve() 181 int *h_in = new int[num_items]; in main() local 192 Initialize(h_in, num_items, max_segment); in main() 193 GreaterThan select_op(h_in[pivot_index]); in main() [all …]
|
H A D | example_device_select_if.cu | 84 int *h_in, in Initialize() argument 102 h_in[j] = key; in Initialize() 113 DisplayResults(h_in, num_items); in Initialize() 124 int *h_in, in Solve() argument 132 if (select_op(h_in[i])) in Solve() 134 h_reference[num_selected] = h_in[i]; in Solve() 139 h_reference[num_items - (i - num_selected) - 1] = h_in[i]; in Solve() 181 int *h_in = new int[num_items]; in main() local 192 Initialize(h_in, num_items, max_segment); in main() 193 GreaterThan select_op(h_in[pivot_index]); in main() [all …]
|
H A D | example_device_partition_flagged.cu | 71 int *h_in, in Initialize() argument 92 h_in[j] = key; in Initialize() 104 DisplayResults(h_in, num_items); in Initialize() 116 int *h_in, in Solve() argument 126 h_reference[num_selected] = h_in[i]; in Solve() 131 h_reference[num_items - (i - num_selected) - 1] = h_in[i]; in Solve() 173 int *h_in = new int[num_items]; in main() local 178 Initialize(h_in, h_flags, num_items, max_segment); in main() 179 int num_selected = Solve(h_in, h_flags, h_reference, num_items); in main() 193 CubDebugExit(cudaMemcpy(d_in, h_in, sizeof(int) * num_items, cudaMemcpyHostToDevice)); in main() [all …]
|
H A D | example_device_select_flagged.cu | 71 int *h_in, in Initialize() argument 92 h_in[j] = key; in Initialize() 104 DisplayResults(h_in, num_items); in Initialize() 116 int *h_in, in Solve() argument 126 h_reference[num_selected] = h_in[i]; in Solve() 131 h_reference[num_items - (i - num_selected) - 1] = h_in[i]; in Solve() 173 int *h_in = new int[num_items]; in main() local 178 Initialize(h_in, h_flags, num_items, max_segment); in main() 179 int num_selected = Solve(h_in, h_flags, h_reference, num_items); in main() 193 CubDebugExit(cudaMemcpy(d_in, h_in, sizeof(int) * num_items, cudaMemcpyHostToDevice)); in main() [all …]
|
/dports/misc/tvm/incubator-tvm-0.6.1/python/tvm/relay/testing/ |
H A D | darknet.py | 31 def _resize_image(img, w_in, h_in): argument 34 h_in = int(h_in) 37 resized = np.zeros((imc, h_in, w_in)) 39 h_scale = (imh - 1) / (h_in - 1) 50 for j in range(h_in): 54 if (j == h_in - 1) or (imh == 1): 69 def _letterbox_image(img, w_in, h_in): argument 72 if (w_in / imw) < (h_in / imh): 76 new_h = h_in 77 new_w = imw * h_in // imh [all …]
|
/dports/misc/py-tvm/incubator-tvm-0.6.1/python/tvm/relay/testing/ |
H A D | darknet.py | 31 def _resize_image(img, w_in, h_in): argument 34 h_in = int(h_in) 37 resized = np.zeros((imc, h_in, w_in)) 39 h_scale = (imh - 1) / (h_in - 1) 50 for j in range(h_in): 54 if (j == h_in - 1) or (imh == 1): 69 def _letterbox_image(img, w_in, h_in): argument 72 if (w_in / imw) < (h_in / imh): 76 new_h = h_in 77 new_w = imw * h_in // imh [all …]
|
/dports/misc/xgboost/xgboost-1.5.1/cub/examples/block/ |
H A D | example_block_reduce.cu | 119 int Initialize(int *h_in, int num_items) in Initialize() argument 125 h_in[i] = i % 17; in Initialize() 126 inclusive += h_in[i]; in Initialize() 145 int *h_in = new int[TILE_SIZE]; in Test() local 149 int h_aggregate = Initialize(h_in, TILE_SIZE); in Test() 164 printf("%d, ", h_in[i]); in Test() 173 cudaMemcpy(d_in, h_in, sizeof(int) * TILE_SIZE, cudaMemcpyHostToDevice); in Test() 199 cudaMemcpy(d_in, h_in, sizeof(int) * TILE_SIZE, cudaMemcpyHostToDevice); in Test() 235 if (h_in) delete[] h_in; in Test()
|
H A D | example_block_radix_sort.cu | 144 Key *h_in, in Initialize() argument 153 h_in[i] = 0; in Initialize() 157 RandomBits(h_in[i]); in Initialize() 159 h_reference[i] = h_in[i]; in Initialize() 179 Key *h_in = new Key[TILE_SIZE * g_grid_size]; in Test() local 184 Initialize(h_in, h_reference, TILE_SIZE * g_grid_size, TILE_SIZE); in Test() 199 std::cout << h_in[i] << ", "; in Test() 208 …CubDebugExit(cudaMemcpy(d_in, h_in, sizeof(Key) * TILE_SIZE * g_grid_size, cudaMemcpyHostToDevice)… in Test() 271 if (h_in) delete[] h_in; in Test()
|
H A D | example_block_scan.cu | 143 int *h_in, in Initialize() argument 151 h_in[i] = i % 17; in Initialize() 154 inclusive += h_in[i]; in Initialize() 173 int *h_in = new int[TILE_SIZE]; in Test() local 178 int h_aggregate = Initialize(h_in, h_reference, TILE_SIZE); in Test() 193 printf("%d, ", h_in[i]); in Test() 202 cudaMemcpy(d_in, h_in, sizeof(int) * TILE_SIZE, cudaMemcpyHostToDevice); in Test() 234 cudaMemcpy(d_in, h_in, sizeof(int) * TILE_SIZE, cudaMemcpyHostToDevice); in Test() 270 if (h_in) delete[] h_in; in Test()
|
/dports/misc/xgboost/xgboost-1.5.1/cub/test/ |
H A D | test_device_reduce.cu | 708 InputT *h_in, in Initialize() argument 713 InitValue(gen_mode, h_in[i], i); in Initialize() 719 DisplayResults(h_in, num_items); in Initialize() 934 HostInputIteratorT h_in, in SolveAndTest() argument 988 InputT* h_in = new InputT[num_items]; in TestProblem() local 989 Initialize(gen_mode, h_in, num_items); in TestProblem() 1007 if (h_in) delete[] h_in; in TestProblem() 1021 HostInputIteratorT h_in, in TestByOp() argument 1112 if (h_in) delete[] h_in; in TestByBackend() 1147 SolveAndTest<CUB, OutputT>(h_in, h_in, num_items, 1, h_segment_offsets, (OffsetT*) NULL, Sum()); in TestByGenMode() [all …]
|
H A D | test_warp_scan.cu | 317 T *h_in, in Initialize() argument 329 InitValue(gen_mode, h_in[i], i); in Initialize() 331 T warp_aggregate = h_in[i]; in Initialize() 357 T *h_in, in Initialize() argument 369 InitValue(gen_mode, h_in[i], i); in Initialize() 371 T warp_aggregate = h_in[i]; in Initialize() 372 T inclusive = h_in[i]; in Initialize() 407 T *h_in = new T[TOTAL_ITEMS]; in Test() local 416 h_in, in Test() 426 DisplayResults(h_in, TOTAL_ITEMS); in Test() [all …]
|
H A D | test_device_select_unique.cu | 251 T *h_in, in Initialize() argument 281 InitValue(INTEGER_SEED, h_in[j], key); in Initialize() 292 DisplayResults(h_in, num_items); in Initialize() 305 InputIteratorT h_in, in Solve() argument 312 h_reference[num_selected] = h_in[0]; in Solve() 318 if (h_in[i] != h_in[i - 1]) in Solve() 320 h_reference[num_selected] = h_in[i]; in Solve() 424 T* h_in = new T[num_items]; in TestPointer() local 429 int num_selected = Solve(h_in, h_reference, num_items); in TestPointer() 450 if (h_in) delete[] h_in; in TestPointer() [all …]
|
H A D | test_warp_reduce.cu | 395 T *h_in, in Initialize() argument 407 InitValue(gen_mode, h_in[i], i); in Initialize() 408 h_head_out[i] = h_in[i]; in Initialize() 409 h_tail_out[i] = h_in[i]; in Initialize() 424 T head_aggregate = h_in[item_offset]; in Initialize() 425 T tail_aggregate = h_in[item_offset]; in Initialize() 436 head_aggregate = h_in[item_offset]; in Initialize() 480 T *h_in = new T[BLOCK_THREADS]; in TestReduce() local 548 if (h_in) delete[] h_in; in TestReduce() 575 T *h_in = new T[BLOCK_THREADS]; in TestSegmentedReduce() local [all …]
|
H A D | test_block_load_store.cu | 158 T *h_in, in TestKernel() argument 223 T *h_in = (T*) malloc(unguarded_elements * sizeof(T)); in TestNative() local 238 InitValue(INTEGER_SEED, h_in[i], i); in TestNative() 240 CubDebugExit(cudaMemcpy(d_in, h_in, sizeof(T) * unguarded_elements, cudaMemcpyHostToDevice)); in TestNative() 254 h_in, in TestNative() 264 if (h_in) free(h_in); in TestNative() 307 T *h_in = (T*) malloc(unguarded_elements * sizeof(T)); in TestIterator() local 322 InitValue(INTEGER_SEED, h_in[i], i); in TestIterator() 324 CubDebugExit(cudaMemcpy(d_in, h_in, sizeof(T) * unguarded_elements, cudaMemcpyHostToDevice)); in TestIterator() 340 h_in, in TestIterator() [all …]
|
/dports/multimedia/QtAV/QtAV-1.13.0/src/ |
H A D | ImageConverterIPP.cpp | 75 , 4*sizeof(quint8)*d.w_in, (IppiSize){d.w_in, d.h_in}); in convert() 80 …)d.orig_ori_rgb.data(), (IppiSize){d.w_in, d.h_in}, 4*sizeof(quint8)*d.w_in, (IppiRect){0, 0, d.w_… in convert() 82 … , (double)d.w_out/(double)d.w_in, (double)d.h_out/(double)d.h_in, IPPI_INTER_CUBIC); in convert() 95 if (d.w_in > 0 && d.h_in > 0) { in prepareData() 96 qDebug("in size=%d x %d", d.w_in, d.h_in); in prepareData() 97 int bytes = avpicture_get_size((PixelFormat)d.fmt_out, d.w_in, d.h_in); in prepareData()
|
/dports/games/dreamchess/dreamchess-0.3.0/dreamer/src/ |
H A D | e_comm_win32.c | 28 HANDLE h_in, h_out; in e_comm_init() local 31 h_in = GetStdHandle(STD_INPUT_HANDLE); in e_comm_init() 34 if ((h_out == INVALID_HANDLE_VALUE) || (h_in == INVALID_HANDLE_VALUE)) { in e_comm_init() 39 pipe_win32_init(h_in, h_out, GetConsoleMode(h_in, &mode) != 0); in e_comm_init()
|
/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/tvm/python/tvm/relay/testing/ |
H A D | darknet.py | 47 def _letterbox_image(img, w_in, h_in): argument 50 if (w_in / imw) < (h_in / imh): 54 new_h = h_in 55 new_w = imw * h_in // imh 63 boxed = np.full((imc, h_in, w_in), 0.5, dtype=float) 67 int((h_in - new_h) / 2) : int((h_in - new_h) / 2) + resizedh,
|
/dports/misc/py-xgboost/xgboost-1.5.1/tests/cpp/common/ |
H A D | test_transform_range.cc | 34 std::vector<bst_float> h_in(size); in TEST() local 36 std::iota(h_in.begin(), h_in.end(), 0); in TEST() 40 const HostDeviceVector<bst_float> in_vec{h_in, TRANSFORM_GPU}; in TEST() 56 std::vector<bst_float> h_in(kSize); in TEST() local 57 const HostDeviceVector<bst_float> in_vec{h_in, -1}; in TEST()
|
/dports/misc/xgboost/xgboost-1.5.1/tests/cpp/common/ |
H A D | test_transform_range.cc | 34 std::vector<bst_float> h_in(size); in TEST() local 36 std::iota(h_in.begin(), h_in.end(), 0); in TEST() 40 const HostDeviceVector<bst_float> in_vec{h_in, TRANSFORM_GPU}; in TEST() 56 std::vector<bst_float> h_in(kSize); in TEST() local 57 const HostDeviceVector<bst_float> in_vec{h_in, -1}; in TEST()
|
/dports/games/dreamchess/dreamchess-0.3.0/common/src/ |
H A D | pipe_win32.c | 32 static HANDLE h_in, h_out; variable 39 h_in = in; in pipe_win32_init() 83 if (!GetNumberOfConsoleInputEvents(h_in, &bytes)) in pipe_win32_poll() 90 } else if (!PeekNamedPipe(h_in, NULL, 0, NULL, &bytes, NULL)) in pipe_win32_poll() 101 if (!ReadFile(h_in, buf + len, BUF_LEN - len - 1, &bytes, NULL)) in pipe_win32_poll()
|
/dports/lang/ghc/ghc-8.10.7/libraries/array/tests/ |
H A D | array001.hs | 24 h_in <- openBinaryFile "array001.data" ReadMode 25 wrote_size <- hFileSize h_in 26 hGetArray h_in the_array 10 27 hClose h_in
|