- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for create_event (0.3 sec)
-
tensorflow/c/experimental/stream_executor/stream_executor_test.cc
auto updated_status = stream->RefreshStatus(); ASSERT_FALSE(stream->ok()); ASSERT_EQ(updated_status.message(), "Test error"); } TEST_F(StreamExecutorTest, CreateEvent) { static bool event_created = false; static bool event_deleted = false; se_.create_event = [](const SP_Device* const device, SP_Event* event, TF_Status* const status) -> void { *event = new SP_Event_st(123); event_created = true;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 19:54:04 UTC 2024 - 26.5K bytes - Viewed (0) -
tensorflow/c/experimental/stream_executor/stream_executor_test_util.cc
se->create_stream = CreateStream; se->destroy_stream = DestroyStream; se->create_stream_dependency = CreateStreamDependency; se->get_stream_status = GetStreamStatus; se->create_event = CreateEvent; se->destroy_event = DestroyEvent; se->get_event_status = GetEventStatus; se->record_event = RecordEvent; se->wait_for_event = WaitForEvent; se->create_timer = CreateTimer;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 21 20:09:00 UTC 2023 - 8.7K bytes - Viewed (0) -
tensorflow/c/experimental/stream_executor/stream_executor_internal.h
default: return Event::Status::kUnknown; } } absl::Status Create() { tensorflow::TF_StatusPtr c_status(TF_NewStatus()); stream_executor_->create_event(device_, &event_handle_, c_status.get()); return tensorflow::StatusFromTF_Status(c_status.get()); } absl::Status Record(SP_Stream stream_handle) { tensorflow::TF_StatusPtr c_status(TF_NewStatus());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 14 07:39:19 UTC 2024 - 8K bytes - Viewed (0) -
tensorflow/c/experimental/stream_executor/stream_executor.cc
TF_VALIDATE_NOT_NULL(SP_StreamExecutor, se, create_stream_dependency); TF_VALIDATE_NOT_NULL(SP_StreamExecutor, se, get_stream_status); TF_VALIDATE_NOT_NULL(SP_StreamExecutor, se, create_event); TF_VALIDATE_NOT_NULL(SP_StreamExecutor, se, destroy_event); TF_VALIDATE_NOT_NULL(SP_StreamExecutor, se, get_event_status); TF_VALIDATE_NOT_NULL(SP_StreamExecutor, se, record_event);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 14 07:39:19 UTC 2024 - 27.1K bytes - Viewed (0) -
tensorflow/c/experimental/stream_executor/stream_executor.h
TF_Status* status); /*** EVENT CALLBACKS ***/ // Create SP_Event. Performs platform-specific allocation and initialization // of an event. void (*create_event)(const SP_Device* device, SP_Event* event, TF_Status* status); // Destroy SE_Event and perform any platform-specific deallocation and // cleanup of an event.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 24 08:40:35 UTC 2022 - 21.6K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_host_send_recv_device_context_test.cc
TF_ASSERT_OK( stream->Memcpy(&gpu_dst, origin_cpu_tensor.data(), gpu_dst.size())); TF_ASSERT_OK(stream->BlockHostUntilDone()); TF_ASSERT_OK_AND_ASSIGN(auto se_event, executor->CreateEvent()); tsl::AsyncValueRef<std::unique_ptr<se::Event>> done_event = tsl::MakeConstructedAsyncValueRef<std::unique_ptr<se::Event>>( std::move(se_event)); XlaHostRecvDeviceContext* device_context =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 22:46:36 UTC 2024 - 7.2K bytes - Viewed (0) -
src/runtime/testdata/testwinlibsignal/main.c
{ case CTRL_BREAK_EVENT: SetEvent(waitForCtrlBreakEvent); return TRUE; default: return FALSE; } } int main(void) { waitForCtrlBreakEvent = CreateEvent(NULL, TRUE, FALSE, NULL); if (!waitForCtrlBreakEvent) { fprintf(stderr, "ERROR: Could not create event\n"); return 1; } if (!SetConsoleCtrlHandler(CtrlHandler, TRUE)) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 21 13:21:00 UTC 2021 - 1.5K bytes - Viewed (0) -
src/internal/syscall/windows/syscall_windows.go
//sys DestroyEnvironmentBlock(block *uint16) (err error) = userenv.DestroyEnvironmentBlock //sys CreateEvent(eventAttrs *SecurityAttributes, manualReset uint32, initialState uint32, name *uint16) (handle syscall.Handle, err error) = kernel32.CreateEventW //sys ProcessPrng(buf []byte) (err error) = bcryptprimitives.ProcessPrng type FILE_ID_BOTH_DIR_INFO struct { NextEntryOffset uint32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 22:55:25 UTC 2024 - 15.5K bytes - Viewed (0) -
src/internal/trace/internal/testgen/go122/trace.go
// of the names in Specs() result for the version that was passed to // this trace. func (t *Trace) RawEvent(typ event.Type, data []byte, args ...uint64) { t.events = append(t.events, t.createEvent(typ, data, args...)) } // DisableTimestamps makes the timestamps for all events generated after // this call zero. Raw events are exempted from this because the caller
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 9.7K bytes - Viewed (0) -
src/runtime/syscall_windows_test.go
if err != nil { b.Fatal(err) } <-ch } } func BenchmarkSyscallToSyscallPing(b *testing.B) { n := b.N event1, err := createEvent() if err != nil { b.Fatal(err) } event2, err := createEvent() if err != nil { b.Fatal(err) } go func() { for i := 0; i < n; i++ { syscall.WaitForSingleObject(event1, syscall.INFINITE)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 16:31:35 UTC 2023 - 32.5K bytes - Viewed (0)