MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / init

Function init

src/backend/cuda/platform.cpp:369–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void init() {
370 thread_local auto err =
371 cudaSetDevice(getDeviceNativeId(getActiveDeviceId()));
372 thread_local auto queue2 = getActiveStream();
373 UNUSED(err);
374 UNUSED(queue2);
375}
376
377int getActiveDeviceId() { return tlocalActiveDeviceId(); }
378

Callers 9

MinMaxOpMethod · 0.70
MinMaxOpMethod · 0.70
mean_dim_kernelFunction · 0.50
mean_first_kernelFunction · 0.50
reduce_blocks_by_keyFunction · 0.50
reduce_blocks_dim_by_keyFunction · 0.50
reduce_dim_kernelFunction · 0.50
reduce_first_kernelFunction · 0.50
reduce_all_kernelFunction · 0.50

Calls 3

getDeviceNativeIdFunction · 0.85
getActiveStreamFunction · 0.85
getActiveDeviceIdFunction · 0.70

Tested by

no test coverage detected