Home
last modified time | relevance | path

Searched refs:g_allocator (Results 1 – 25 of 98) sorted by relevance

1234

/dports/misc/xgboost/xgboost-1.5.1/cub/examples/device/
H A Dexample_device_sort_find_non_trivial_runs.cu59 CachingDeviceAllocator g_allocator(true); // Caching allocator for device memory
277 CubDebugExit(g_allocator.DeviceAllocate(&d_temp_storage, temp_storage_bytes)); in main()
285 if (d_temp_storage) CubDebugExit(g_allocator.DeviceFree(d_temp_storage)); in main()
294 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_offests_out, sizeof(int) * num_items)); in main()
295 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_lengths_out, sizeof(int) * num_items)); in main()
296 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_num_runs, sizeof(int) * 1)); in main()
308 CubDebugExit(g_allocator.DeviceAllocate(&d_temp_storage, temp_storage_bytes)); in main()
358 if (d_offests_out) CubDebugExit(g_allocator.DeviceFree(d_offests_out)); in main()
359 if (d_lengths_out) CubDebugExit(g_allocator.DeviceFree(d_lengths_out)); in main()
360 if (d_num_runs) CubDebugExit(g_allocator.DeviceFree(d_num_runs)); in main()
[all …]
H A Dexample_device_partition_flagged.cu58 CachingDeviceAllocator g_allocator(true); // Caching allocator for device memory
189 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_in, sizeof(int) * num_items)); in main()
190 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_flags, sizeof(unsigned char) * num_items)); in main()
199 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_out, sizeof(int) * num_items)); in main()
200 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_num_selected_out, sizeof(int))); in main()
206 CubDebugExit(g_allocator.DeviceAllocate(&d_temp_storage, temp_storage_bytes)); in main()
221 if (d_out) CubDebugExit(g_allocator.DeviceFree(d_out)); in main()
222 if (d_num_selected_out) CubDebugExit(g_allocator.DeviceFree(d_num_selected_out)); in main()
223 if (d_temp_storage) CubDebugExit(g_allocator.DeviceFree(d_temp_storage)); in main()
224 if (d_in) CubDebugExit(g_allocator.DeviceFree(d_in)); in main()
[all …]
H A Dexample_device_select_flagged.cu58 CachingDeviceAllocator g_allocator(true); // Caching allocator for device memory
189 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_in, sizeof(int) * num_items)); in main()
190 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_flags, sizeof(unsigned char) * num_items)); in main()
199 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_out, sizeof(int) * num_items)); in main()
200 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_num_selected_out, sizeof(int))); in main()
206 CubDebugExit(g_allocator.DeviceAllocate(&d_temp_storage, temp_storage_bytes)); in main()
221 if (d_out) CubDebugExit(g_allocator.DeviceFree(d_out)); in main()
222 if (d_num_selected_out) CubDebugExit(g_allocator.DeviceFree(d_num_selected_out)); in main()
223 if (d_temp_storage) CubDebugExit(g_allocator.DeviceFree(d_temp_storage)); in main()
224 if (d_in) CubDebugExit(g_allocator.DeviceFree(d_in)); in main()
[all …]
H A Dexample_device_radix_sort.cu58 CachingDeviceAllocator g_allocator(true); // Caching allocator for device memory
181 … CubDebugExit(g_allocator.DeviceAllocate((void**)&d_keys.d_buffers[0], sizeof(float) * num_items)); in main()
182 … CubDebugExit(g_allocator.DeviceAllocate((void**)&d_keys.d_buffers[1], sizeof(float) * num_items)); in main()
183 … CubDebugExit(g_allocator.DeviceAllocate((void**)&d_values.d_buffers[0], sizeof(int) * num_items)); in main()
184 … CubDebugExit(g_allocator.DeviceAllocate((void**)&d_values.d_buffers[1], sizeof(int) * num_items)); in main()
191 CubDebugExit(g_allocator.DeviceAllocate(&d_temp_storage, temp_storage_bytes)); in main()
214 if (d_keys.d_buffers[0]) CubDebugExit(g_allocator.DeviceFree(d_keys.d_buffers[0])); in main()
215 if (d_keys.d_buffers[1]) CubDebugExit(g_allocator.DeviceFree(d_keys.d_buffers[1])); in main()
216 if (d_values.d_buffers[0]) CubDebugExit(g_allocator.DeviceFree(d_values.d_buffers[0])); in main()
217 if (d_values.d_buffers[1]) CubDebugExit(g_allocator.DeviceFree(d_values.d_buffers[1])); in main()
[all …]
H A Dexample_device_select_unique.cu58 CachingDeviceAllocator g_allocator(true); // Caching allocator for device memory
180 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_in, sizeof(int) * num_items)); in main()
188 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_out, sizeof(int) * num_items)); in main()
189 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_num_selected_out, sizeof(int))); in main()
195 CubDebugExit(g_allocator.DeviceAllocate(&d_temp_storage, temp_storage_bytes)); in main()
210 if (d_in) CubDebugExit(g_allocator.DeviceFree(d_in)); in main()
211 if (d_out) CubDebugExit(g_allocator.DeviceFree(d_out)); in main()
212 if (d_num_selected_out) CubDebugExit(g_allocator.DeviceFree(d_num_selected_out)); in main()
213 if (d_temp_storage) CubDebugExit(g_allocator.DeviceFree(d_temp_storage)); in main()
H A Dexample_device_reduce.cu57 CachingDeviceAllocator g_allocator(true); // Caching allocator for device memory
145 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_in, sizeof(int) * num_items)); in main()
152 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_out, sizeof(int) * 1)); in main()
158 CubDebugExit(g_allocator.DeviceAllocate(&d_temp_storage, temp_storage_bytes)); in main()
170 if (d_in) CubDebugExit(g_allocator.DeviceFree(d_in)); in main()
171 if (d_out) CubDebugExit(g_allocator.DeviceFree(d_out)); in main()
172 if (d_temp_storage) CubDebugExit(g_allocator.DeviceFree(d_temp_storage)); in main()
H A Dexample_device_partition_if.cu58 CachingDeviceAllocator g_allocator(true); // Caching allocator for device memory
203 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_in, sizeof(int) * num_items)); in main()
211 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_out, sizeof(int) * num_items)); in main()
212 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_num_selected_out, sizeof(int))); in main()
218 CubDebugExit(g_allocator.DeviceAllocate(&d_temp_storage, temp_storage_bytes)); in main()
233 if (d_in) CubDebugExit(g_allocator.DeviceFree(d_in)); in main()
234 if (d_out) CubDebugExit(g_allocator.DeviceFree(d_out)); in main()
235 if (d_num_selected_out) CubDebugExit(g_allocator.DeviceFree(d_num_selected_out)); in main()
236 if (d_temp_storage) CubDebugExit(g_allocator.DeviceFree(d_temp_storage)); in main()
H A Dexample_device_select_if.cu58 CachingDeviceAllocator g_allocator(true); // Caching allocator for device memory
203 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_in, sizeof(int) * num_items)); in main()
211 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_out, sizeof(int) * num_items)); in main()
212 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_num_selected_out, sizeof(int))); in main()
218 CubDebugExit(g_allocator.DeviceAllocate(&d_temp_storage, temp_storage_bytes)); in main()
233 if (d_in) CubDebugExit(g_allocator.DeviceFree(d_in)); in main()
234 if (d_out) CubDebugExit(g_allocator.DeviceFree(d_out)); in main()
235 if (d_num_selected_out) CubDebugExit(g_allocator.DeviceFree(d_num_selected_out)); in main()
236 if (d_temp_storage) CubDebugExit(g_allocator.DeviceFree(d_temp_storage)); in main()
H A Dexample_device_scan.cu57 CachingDeviceAllocator g_allocator(true); // Caching allocator for device memory
150 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_in, sizeof(int) * num_items)); in main()
157 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_out, sizeof(int) * num_items)); in main()
163 CubDebugExit(g_allocator.DeviceAllocate(&d_temp_storage, temp_storage_bytes)); in main()
176 if (d_in) CubDebugExit(g_allocator.DeviceFree(d_in)); in main()
177 if (d_out) CubDebugExit(g_allocator.DeviceFree(d_out)); in main()
178 if (d_temp_storage) CubDebugExit(g_allocator.DeviceFree(d_temp_storage)); in main()
/dports/misc/xgboost/xgboost-1.5.1/cub/test/
H A Dtest_iterator.cu65 CachingDeviceAllocator g_allocator(true);
182 if (d_out) CubDebugExit(g_allocator.DeviceFree(d_out)); in Test()
183 if (d_itrs) CubDebugExit(g_allocator.DeviceFree(d_itrs)); in Test()
226 if (d_copy) CubDebugExit(g_allocator.DeviceFree(d_copy)); in TestConstant()
281 if (d_copy) CubDebugExit(g_allocator.DeviceFree(d_copy)); in TestCounting()
350 if (d_copy) CubDebugExit(g_allocator.DeviceFree(d_copy)); in TestModified()
355 if (d_data) CubDebugExit(g_allocator.DeviceFree(d_data)); in TestModified()
422 if (d_copy) CubDebugExit(g_allocator.DeviceFree(d_copy)); in TestTransform()
427 if (d_data) CubDebugExit(g_allocator.DeviceFree(d_data)); in TestTransform()
499 if (d_copy) CubDebugExit(g_allocator.DeviceFree(d_copy)); in TestTexObj()
[all …]
H A Dtest_device_reduce_by_key.cu61 CachingDeviceAllocator g_allocator(true);
443 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_num_runs, sizeof(int))); in Test()
455 CubDebugExit(g_allocator.DeviceAllocate(&d_temp_storage, temp_storage_bytes)); in Test()
502 if (d_keys_out) CubDebugExit(g_allocator.DeviceFree(d_keys_out)); in Test()
503 if (d_values_out) CubDebugExit(g_allocator.DeviceFree(d_values_out)); in Test()
504 if (d_num_runs) CubDebugExit(g_allocator.DeviceFree(d_num_runs)); in Test()
506 if (d_cdp_error) CubDebugExit(g_allocator.DeviceFree(d_cdp_error)); in Test()
507 if (d_temp_storage) CubDebugExit(g_allocator.DeviceFree(d_temp_storage)); in Test()
569 if (d_keys_in) CubDebugExit(g_allocator.DeviceFree(d_keys_in)); in TestPointer()
570 if (d_values_in) CubDebugExit(g_allocator.DeviceFree(d_values_in)); in TestPointer()
[all …]
H A Dtest_block_load_store.cu55 CachingDeviceAllocator g_allocator(true);
229 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_in, sizeof(T) * unguarded_elements)); in TestNative()
231 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_out_guarded, sizeof(T) * guarded_elements)); in TestNative()
265 if (d_in) CubDebugExit(g_allocator.DeviceFree(d_in)); in TestNative()
266 if (d_out_unguarded) CubDebugExit(g_allocator.DeviceFree(d_out_unguarded)); in TestNative()
267 if (d_out_guarded) CubDebugExit(g_allocator.DeviceFree(d_out_guarded)); in TestNative()
313 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_in, sizeof(T) * unguarded_elements)); in TestIterator()
315 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_out_guarded, sizeof(T) * guarded_elements)); in TestIterator()
351 if (d_in) CubDebugExit(g_allocator.DeviceFree(d_in)); in TestIterator()
352 if (d_out_unguarded) CubDebugExit(g_allocator.DeviceFree(d_out_unguarded)); in TestIterator()
[all …]
H A Dtest_device_select_unique.cu62 CachingDeviceAllocator g_allocator(true);
346 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_out, sizeof(T) * num_items)); in Test()
347 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_num_selected_out, sizeof(int))); in Test()
359 CubDebugExit(g_allocator.DeviceAllocate(&d_temp_storage, temp_storage_bytes)); in Test()
401 if (d_out) CubDebugExit(g_allocator.DeviceFree(d_out)); in Test()
402 if (d_num_selected_out) CubDebugExit(g_allocator.DeviceFree(d_num_selected_out)); in Test()
403 if (d_temp_storage_bytes) CubDebugExit(g_allocator.DeviceFree(d_temp_storage_bytes)); in Test()
404 if (d_cdp_error) CubDebugExit(g_allocator.DeviceFree(d_cdp_error)); in Test()
405 if (d_temp_storage) CubDebugExit(g_allocator.DeviceFree(d_temp_storage)); in Test()
441 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_in, sizeof(T) * num_items)); in TestPointer()
[all …]
H A Dtest_device_run_length_encode.cu61 CachingDeviceAllocator g_allocator(true);
507 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_num_runs, sizeof(int))); in Test()
519 CubDebugExit(g_allocator.DeviceAllocate(&d_temp_storage, temp_storage_bytes)); in Test()
586 if (d_unique_out) CubDebugExit(g_allocator.DeviceFree(d_unique_out)); in Test()
587 if (d_offsets_out) CubDebugExit(g_allocator.DeviceFree(d_offsets_out)); in Test()
588 if (d_lengths_out) CubDebugExit(g_allocator.DeviceFree(d_lengths_out)); in Test()
589 if (d_num_runs) CubDebugExit(g_allocator.DeviceFree(d_num_runs)); in Test()
591 if (d_cdp_error) CubDebugExit(g_allocator.DeviceFree(d_cdp_error)); in Test()
592 if (d_temp_storage) CubDebugExit(g_allocator.DeviceFree(d_temp_storage)); in Test()
638 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_in, sizeof(T) * num_items)); in TestPointer()
[all …]
H A Dtest_warp_reduce.cu52 CachingDeviceAllocator g_allocator(true);
495 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_elapsed, sizeof(clock_t))); in TestReduce()
552 if (d_in) CubDebugExit(g_allocator.DeviceFree(d_in)); in TestReduce()
553 if (d_out) CubDebugExit(g_allocator.DeviceFree(d_out)); in TestReduce()
554 if (d_elapsed) CubDebugExit(g_allocator.DeviceFree(d_elapsed)); in TestReduce()
594 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_elapsed, sizeof(clock_t))); in TestSegmentedReduce()
663 if (d_in) CubDebugExit(g_allocator.DeviceFree(d_in)); in TestSegmentedReduce()
664 if (d_flags) CubDebugExit(g_allocator.DeviceFree(d_flags)); in TestSegmentedReduce()
665 if (d_head_out) CubDebugExit(g_allocator.DeviceFree(d_head_out)); in TestSegmentedReduce()
666 if (d_tail_out) CubDebugExit(g_allocator.DeviceFree(d_tail_out)); in TestSegmentedReduce()
[all …]
H A Dtest_block_reduce.cu58 CachingDeviceAllocator g_allocator(true);
350 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_in, sizeof(T) * num_items)); in TestFullTile()
351 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_out, sizeof(T) * 1)); in TestFullTile()
390 if (d_in) CubDebugExit(g_allocator.DeviceFree(d_in)); in TestFullTile()
391 if (d_out) CubDebugExit(g_allocator.DeviceFree(d_out)); in TestFullTile()
392 if (d_elapsed) CubDebugExit(g_allocator.DeviceFree(d_elapsed)); in TestFullTile()
539 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_in, sizeof(T) * TILE_SIZE)); in TestPartialTile()
540 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_out, sizeof(T) * 1)); in TestPartialTile()
575 if (d_in) CubDebugExit(g_allocator.DeviceFree(d_in)); in TestPartialTile()
576 if (d_out) CubDebugExit(g_allocator.DeviceFree(d_out)); in TestPartialTile()
[all …]
H A Dtest_device_histogram.cu72 CachingDeviceAllocator g_allocator(true);
849 CubDebugExit(g_allocator.DeviceFree(d_histogram[channel])); in TestEven()
852 if (d_temp_storage_bytes) CubDebugExit(g_allocator.DeviceFree(d_temp_storage_bytes)); in TestEven()
853 if (d_cdp_error) CubDebugExit(g_allocator.DeviceFree(d_cdp_error)); in TestEven()
854 if (d_temp_storage) CubDebugExit(g_allocator.DeviceFree(d_temp_storage)); in TestEven()
903 if (d_samples) CubDebugExit(g_allocator.DeviceFree(d_samples)); in TestEvenNative()
1125 CubDebugExit(g_allocator.DeviceFree(d_histogram[channel])); in TestRange()
1128 CubDebugExit(g_allocator.DeviceFree(d_levels[channel])); in TestRange()
1131 if (d_samples) CubDebugExit(g_allocator.DeviceFree(d_samples)); in TestRange()
1133 if (d_cdp_error) CubDebugExit(g_allocator.DeviceFree(d_cdp_error)); in TestRange()
[all …]
H A Dtest_block_histogram.cu58 CachingDeviceAllocator g_allocator(true);
163 …CubDebugExit(g_allocator.DeviceAllocate((void**)&d_samples, sizeof(SampleT) * num_samp… in Test()
164 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_histogram, sizeof(int) * BINS)); in Test()
188 if (d_samples) CubDebugExit(g_allocator.DeviceFree(d_samples)); in Test()
189 if (d_histogram) CubDebugExit(g_allocator.DeviceFree(d_histogram)); in Test()
H A Dtest_device_select_if.cu62 CachingDeviceAllocator g_allocator(true);
654 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_out, sizeof(T) * num_items)); in Test()
655 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_num_selected_out, sizeof(int))); in Test()
668 CubDebugExit(g_allocator.DeviceAllocate(&d_temp_storage, temp_storage_bytes)); in Test()
719 if (d_flags) CubDebugExit(g_allocator.DeviceFree(d_flags)); in Test()
720 if (d_out) CubDebugExit(g_allocator.DeviceFree(d_out)); in Test()
721 if (d_num_selected_out) CubDebugExit(g_allocator.DeviceFree(d_num_selected_out)); in Test()
723 if (d_cdp_error) CubDebugExit(g_allocator.DeviceFree(d_cdp_error)); in Test()
724 if (d_temp_storage) CubDebugExit(g_allocator.DeviceFree(d_temp_storage)); in Test()
776 CubDebugExit(g_allocator.DeviceAllocate((void**)&d_in, sizeof(T) * num_items)); in TestPointer()
[all …]
/dports/devel/aws-crt-cpp/aws-crt-cpp-0.17.2/include/aws/crt/auth/
H A DCredentials.h46 Allocator *allocator = g_allocator) noexcept;
331 …edentialsProvider(aws_credentials_provider *provider, Allocator *allocator = g_allocator) noexcept;
366 Allocator *allocator = g_allocator);
372 Allocator *allocator = g_allocator);
379 Allocator *allocator = g_allocator);
386 Allocator *allocator = g_allocator);
394 Allocator *allocator = g_allocator);
402 Allocator *allocator = g_allocator);
412 Allocator *allocator = g_allocator);
420 Allocator *allocator = g_allocator);
[all …]
/dports/devel/aws-crt-cpp/aws-crt-cpp-0.17.2/include/aws/crt/io/
H A DTlsOptions.h52 … static TlsContextOptions InitDefaultClient(Allocator *allocator = g_allocator) noexcept;
63 Allocator *allocator = g_allocator) noexcept;
75 Allocator *allocator = g_allocator) noexcept;
90 Allocator *allocator = g_allocator) noexcept;
110 Allocator *allocator = g_allocator) noexcept;
222 … TlsContext(TlsContextOptions &options, TlsMode mode, Allocator *allocator = g_allocator) noexcept;
269 Allocator *allocator = g_allocator);
305 Allocator *allocator = g_allocator);
/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/src/
H A Dglcontext_html5.cpp35 m_canvas = (char*)BX_ALLOC(g_allocator, strlen(_canvas) + 1); in SwapChainGL()
49 BX_FREE(g_allocator, m_canvas); in ~SwapChainGL()
92 BX_DELETE(g_allocator, m_primary); in destroy()
137 SwapChainGL* swapChain = BX_NEW(g_allocator, SwapChainGL)(context, canvas); in createSwapChain()
151 BX_DELETE(g_allocator, _swapChain); in destroySwapChain()
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/src/
H A Dglcontext_html5.cpp35 m_canvas = (char*)BX_ALLOC(g_allocator, strlen(_canvas) + 1); in SwapChainGL()
49 BX_FREE(g_allocator, m_canvas); in ~SwapChainGL()
92 BX_DELETE(g_allocator, m_primary); in destroy()
137 SwapChainGL* swapChain = BX_NEW(g_allocator, SwapChainGL)(context, canvas); in createSwapChain()
151 BX_DELETE(g_allocator, _swapChain); in destroySwapChain()
/dports/devel/aws-crt-cpp/aws-crt-cpp-0.17.2/include/aws/iot/
H A DMqttClient.h99 Crt::Allocator *allocator = Crt::g_allocator) noexcept;
108 Crt::Allocator *allocator = Crt::g_allocator) noexcept;
156 Crt::Allocator *allocator = Crt::g_allocator) noexcept;
165 Crt::Allocator *allocator = Crt::g_allocator) noexcept;
172 Crt::Allocator *allocator = Crt::g_allocator) noexcept;
286 …Client(Crt::Io::ClientBootstrap &bootstrap, Crt::Allocator *allocator = Crt::g_allocator) noexcept;
/dports/devel/aws-crt-cpp/aws-crt-cpp-0.17.2/source/
H A DApi.cpp21 Allocator *g_allocator = Aws::Crt::DefaultAllocator(); variable
31 static void *s_cJSONAlloc(size_t sz) { return aws_mem_acquire(g_allocator, sz); } in s_cJSONAlloc()
33 static void s_cJSONFree(void *ptr) { return aws_mem_release(g_allocator, ptr); } in s_cJSONFree()
38 g_allocator = allocator; in s_initApi()
73 g_allocator = nullptr; in ~ApiHandle()
122 if (aws_logger_init_standard(&m_logger, g_allocator, &options)) in InitializeLoggingCommon()

1234