file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
src/ray/gcs/pb_util.h | C/C++ Header | #ifndef RAY_GCS_PB_UTIL_H
#define RAY_GCS_PB_UTIL_H
#include <memory>
#include "ray/common/id.h"
#include "ray/common/task/task_spec.h"
#include "ray/protobuf/gcs.pb.h"
namespace ray {
namespace gcs {
/// Helper function to produce job table data (for newly created job or updated job).
///
/// \param job_id The ID ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/redis_accessor.cc | C++ | #include "ray/gcs/redis_accessor.h"
#include <boost/none.hpp>
#include "ray/gcs/pb_util.h"
#include "ray/gcs/redis_gcs_client.h"
#include "ray/util/logging.h"
namespace ray {
namespace gcs {
RedisActorInfoAccessor::RedisActorInfoAccessor(RedisGcsClient *client_impl)
: client_impl_(client_impl), actor_sub_executo... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/redis_accessor.h | C/C++ Header | #ifndef RAY_GCS_REDIS_ACCESSOR_H
#define RAY_GCS_REDIS_ACCESSOR_H
#include "ray/common/id.h"
#include "ray/gcs/accessor.h"
#include "ray/gcs/callback.h"
#include "ray/gcs/subscription_executor.h"
#include "ray/gcs/tables.h"
namespace ray {
namespace gcs {
class RedisGcsClient;
/// \class RedisActorInfoAccessor
///... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/redis_async_context.cc | C++ | #include "ray/gcs/redis_async_context.h"
extern "C" {
#include "hiredis/async.h"
#include "hiredis/hiredis.h"
}
namespace ray {
namespace gcs {
RedisAsyncContext::RedisAsyncContext(redisAsyncContext *redis_async_context)
: redis_async_context_(redis_async_context) {
RAY_CHECK(redis_async_context_ != nullptr);... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/redis_async_context.h | C/C++ Header | #ifndef RAY_GCS_REDIS_ASYNC_CONTEXT_H
#define RAY_GCS_REDIS_ASYNC_CONTEXT_H
#include <stdarg.h>
#include <mutex>
#include "ray/common/status.h"
extern "C" {
#include "hiredis/async.h"
#include "hiredis/hiredis.h"
}
namespace ray {
namespace gcs {
/// \class RedisAsyncContext
/// RedisAsyncContext class is a wrappe... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/redis_context.cc | C++ | #include "ray/gcs/redis_context.h"
#include <unistd.h>
#include <sstream>
#include "ray/stats/stats.h"
#include "ray/util/util.h"
extern "C" {
#include "hiredis/async.h"
#include "hiredis/hiredis.h"
}
// TODO(pcm): Integrate into the C++ tree.
#include "ray/common/ray_config.h"
namespace {
/// A helper function ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/redis_context.h | C/C++ Header | #ifndef RAY_GCS_REDIS_CONTEXT_H
#define RAY_GCS_REDIS_CONTEXT_H
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <functional>
#include <memory>
#include <mutex>
#include <unordered_map>
#include "ray/common/id.h"
#include "ray/common/status.h"
#include "ray/util/logging.h"
#include "ray/gcs/redis_async_c... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/redis_gcs_client.cc | C++ | #include "ray/gcs/redis_gcs_client.h"
#include <unistd.h>
#include "ray/common/ray_config.h"
#include "ray/gcs/redis_accessor.h"
#include "ray/gcs/redis_context.h"
static void GetRedisShards(redisContext *context, std::vector<std::string> &addresses,
std::vector<int> &ports) {
// Get the ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/redis_gcs_client.h | C/C++ Header | #ifndef RAY_GCS_REDIS_GCS_CLIENT_H
#define RAY_GCS_REDIS_GCS_CLIENT_H
#include <map>
#include <string>
#include "ray/common/id.h"
#include "ray/common/status.h"
#include "ray/gcs/asio.h"
#include "ray/gcs/gcs_client.h"
#include "ray/gcs/tables.h"
#include "ray/util/logging.h"
namespace ray {
namespace gcs {
class ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/redis_module/chain_module.h | C/C++ Header | #ifndef RAY_CHAIN_MODULE_H_
#define RAY_CHAIN_MODULE_H_
#include <functional>
#include "redismodule.h"
// NOTE(zongheng): this duplicated declaration serves as forward-declaration
// only. The implementation is supposed to be linked in from credis. In
// principle, we can expose a header from credis and simple inc... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/redis_module/ray_redis_module.cc | C++ | #include <string.h>
#include <sstream>
#include "ray/common/common_protocol.h"
#include "ray/common/id.h"
#include "ray/common/status.h"
#include "ray/protobuf/gcs.pb.h"
#include "ray/util/logging.h"
#include "redis_string.h"
#include "redismodule.h"
using ray::Status;
using ray::rpc::GcsChangeMode;
using ray::rpc::G... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/redis_module/redis_string.h | C/C++ Header | #ifndef RAY_REDIS_STRING_H_
#define RAY_REDIS_STRING_H_
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "redismodule.h"
/* Format a RedisModuleString.
*
* @param ctx The redis module context.
* @param fmt The format string. This currently supports %S for
* Redis... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/redis_module/redismodule.h | C/C++ Header | #ifndef REDISMODULE_H
#define REDISMODULE_H
#include <stdint.h>
#include <stdio.h>
#include <sys/types.h>
/* ---------------- Defines common between core and modules --------------- */
/* Error status return values. */
#define REDISMODULE_OK 0
#define REDISMODULE_ERR 1
/* API versions. */
#define REDISMODULE_APIVER... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/subscription_executor.cc | C++ | #include "ray/gcs/subscription_executor.h"
namespace ray {
namespace gcs {
template <typename ID, typename Data, typename Table>
Status SubscriptionExecutor<ID, Data, Table>::AsyncSubscribeAll(
const ClientID &client_id, const SubscribeCallback<ID, Data> &subscribe,
const StatusCallback &done) {
// TODO(mi... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/subscription_executor.h | C/C++ Header | #ifndef RAY_GCS_SUBSCRIPTION_EXECUTOR_H
#define RAY_GCS_SUBSCRIPTION_EXECUTOR_H
#include <atomic>
#include <list>
#include <mutex>
#include "ray/gcs/callback.h"
#include "ray/gcs/tables.h"
namespace ray {
namespace gcs {
/// \class SubscriptionExecutor
/// SubscriptionExecutor class encapsulates the implementation ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/tables.cc | C++ | #include "ray/gcs/tables.h"
#include "absl/time/clock.h"
#include "ray/common/common_protocol.h"
#include "ray/common/grpc_util.h"
#include "ray/common/ray_config.h"
#include "ray/gcs/redis_gcs_client.h"
namespace {
static const std::string kTableAppendCommand = "RAY.TABLE_APPEND";
static const std::string kChainTa... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/tables.h | C/C++ Header | #ifndef RAY_GCS_TABLES_H
#define RAY_GCS_TABLES_H
#include <map>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include "ray/common/constants.h"
#include "ray/common/id.h"
#include "ray/common/status.h"
#include "ray/util/logging.h"
#include "ray/gcs/callback.h"
#include "ray/gcs/entry_change_n... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/test/accessor_test_base.h | C/C++ Header | #ifndef RAY_GCS_ACCESSOR_TEST_BASE_H
#define RAY_GCS_ACCESSOR_TEST_BASE_H
#include <atomic>
#include <chrono>
#include <string>
#include <thread>
#include <vector>
#include "gtest/gtest.h"
#include "ray/gcs/redis_accessor.h"
#include "ray/gcs/redis_gcs_client.h"
#include "ray/util/test_util.h"
namespace ray {
namesp... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/test/asio_test.cc | C++ | #include <iostream>
#include "gtest/gtest.h"
#include "ray/gcs/asio.h"
#include "ray/util/logging.h"
#include "ray/util/test_util.h"
extern "C" {
#include "hiredis/async.h"
#include "hiredis/hiredis.h"
}
namespace ray {
namespace gcs {
boost::asio::io_service io_service;
void ConnectCallback(const redisAsyncConte... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/test/redis_actor_info_accessor_test.cc | C++ | #include <atomic>
#include <chrono>
#include <string>
#include <thread>
#include <vector>
#include "gtest/gtest.h"
#include "ray/gcs/redis_gcs_client.h"
#include "ray/gcs/test/accessor_test_base.h"
#include "ray/util/test_util.h"
namespace ray {
namespace gcs {
class ActorInfoAccessorTest : public AccessorTestBase<A... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/test/redis_gcs_client_test.cc | C++ | #include "gtest/gtest.h"
// TODO(pcm): get rid of this and replace with the type safe plasma event loop
extern "C" {
#include "hiredis/hiredis.h"
}
#include "ray/common/ray_config.h"
#include "ray/gcs/pb_util.h"
#include "ray/gcs/redis_gcs_client.h"
#include "ray/gcs/tables.h"
#include "ray/util/test_util.h"
namespa... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/test/redis_job_info_accessor_test.cc | C++ | #include <memory>
#include "gtest/gtest.h"
#include "ray/gcs/pb_util.h"
#include "ray/gcs/redis_gcs_client.h"
#include "ray/gcs/test/accessor_test_base.h"
#include "ray/util/test_util.h"
namespace ray {
namespace gcs {
class RedisJobInfoAccessorTest : public AccessorTestBase<JobID, JobTableData> {
protected:
virt... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/test/redis_node_info_accessor_test.cc | C++ | #include <memory>
#include "gtest/gtest.h"
#include "ray/gcs/redis_accessor.h"
#include "ray/gcs/redis_gcs_client.h"
#include "ray/gcs/test/accessor_test_base.h"
namespace ray {
namespace gcs {
class NodeDynamicResourceTest : public AccessorTestBase<ClientID, ResourceTableData> {
protected:
typedef NodeInfoAccess... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/test/redis_object_info_accessor_test.cc | C++ | #include <unordered_map>
#include <vector>
#include "gtest/gtest.h"
#include "ray/gcs/redis_accessor.h"
#include "ray/gcs/redis_gcs_client.h"
#include "ray/gcs/test/accessor_test_base.h"
#include "ray/util/test_util.h"
namespace ray {
namespace gcs {
class RedisObjectInfoAccessorTest : public AccessorTestBase<Object... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/gcs/test/subscription_executor_test.cc | C++ | #include "ray/gcs/subscription_executor.h"
#include "gtest/gtest.h"
#include "ray/gcs/callback.h"
#include "ray/gcs/entry_change_notification.h"
#include "ray/gcs/redis_gcs_client.h"
#include "ray/gcs/test/accessor_test_base.h"
namespace ray {
namespace gcs {
class SubscriptionExecutorTest : public AccessorTestBase<... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/object_manager/object_buffer_pool.cc | C++ | #include "ray/object_manager/object_buffer_pool.h"
#include "ray/common/status.h"
#include "ray/util/logging.h"
namespace ray {
ObjectBufferPool::ObjectBufferPool(const std::string &store_socket_name,
uint64_t chunk_size)
: default_chunk_size_(chunk_size) {
store_socket_name_... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/object_manager/object_buffer_pool.h | C/C++ Header | #ifndef RAY_OBJECT_MANAGER_OBJECT_BUFFER_POOL_H
#define RAY_OBJECT_MANAGER_OBJECT_BUFFER_POOL_H
#include <list>
#include <memory>
#include <mutex>
#include <vector>
#include <boost/asio.hpp>
#include <boost/asio/error.hpp>
#include <boost/bind.hpp>
#include "plasma/client.h"
#include "ray/common/id.h"
#include "ray... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/object_manager/object_directory.cc | C++ | #include "ray/object_manager/object_directory.h"
namespace ray {
ObjectDirectory::ObjectDirectory(boost::asio::io_service &io_service,
std::shared_ptr<gcs::GcsClient> &gcs_client)
: io_service_(io_service), gcs_client_(gcs_client) {}
namespace {
using ray::rpc::GcsChangeMode;
us... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/object_manager/object_directory.h | C/C++ Header | #ifndef RAY_OBJECT_MANAGER_OBJECT_DIRECTORY_H
#define RAY_OBJECT_MANAGER_OBJECT_DIRECTORY_H
#include <memory>
#include <mutex>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "plasma/client.h"
#include "ray/common/id.h"
#include "ray/common/status.h"
#include "ray/gcs/redis_gcs_client.h"... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/object_manager/object_manager.cc | C++ | #include "ray/object_manager/object_manager.h"
#include "ray/common/common_protocol.h"
#include "ray/stats/stats.h"
#include "ray/util/util.h"
namespace asio = boost::asio;
namespace object_manager_protocol = ray::object_manager::protocol;
namespace ray {
ObjectManager::ObjectManager(asio::io_service &main_service,... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/object_manager/object_manager.h | C/C++ Header | #ifndef RAY_OBJECT_MANAGER_OBJECT_MANAGER_H
#define RAY_OBJECT_MANAGER_OBJECT_MANAGER_H
#include <algorithm>
#include <cstdint>
#include <deque>
#include <map>
#include <memory>
#include <mutex>
#include <random>
#include <thread>
#include <boost/asio.hpp>
#include <boost/asio/error.hpp>
#include <boost/bind.hpp>
#i... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/object_manager/object_store_notification_manager.cc | C++ | #include <future>
#include <iostream>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include "ray/common/status.h"
#include "ray/common/common_protocol.h"
#include "ray/object_manager/object_store_notification_manager.h"
#include "ray/util/util.h"
namespace ray {
ObjectStoreNoti... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/object_manager/object_store_notification_manager.h | C/C++ Header | #ifndef RAY_OBJECT_MANAGER_OBJECT_STORE_CLIENT_H
#define RAY_OBJECT_MANAGER_OBJECT_STORE_CLIENT_H
#include <list>
#include <memory>
#include <vector>
#include <boost/asio.hpp>
#include <boost/asio/error.hpp>
#include <boost/bind.hpp>
#include "plasma/client.h"
#include "ray/common/client_connection.h"
#include "ray... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/object_manager/test/object_manager_stress_test.cc | C++ | #include <unistd.h>
#include <chrono>
#include <iostream>
#include <random>
#include <thread>
#include "gtest/gtest.h"
#include "ray/common/status.h"
#include "ray/object_manager/object_manager.h"
namespace ray {
using rpc::GcsNodeInfo;
std::string store_executable;
static inline void flushall_redis(void) {
r... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/object_manager/test/object_manager_test.cc | C++ | #include <unistd.h>
#include <iostream>
#include <thread>
#include "gtest/gtest.h"
#include "ray/common/status.h"
#include "ray/object_manager/object_manager.h"
namespace {
std::string store_executable;
int64_t wait_timeout_ms;
} // namespace
namespace ray {
using rpc::GcsNodeInfo;
static inline void flushall_... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/protobuf/common.proto | Protocol Buffers | syntax = "proto3";
package ray.rpc;
option java_package = "org.ray.runtime.generated";
// Language of a task or worker.
enum Language {
PYTHON = 0;
JAVA = 1;
CPP = 2;
}
// Type of a worker.
enum WorkerType {
WORKER = 0;
DRIVER = 1;
}
// Type of a task.
enum TaskType {
// Normal task.
NORMAL_TASK = 0;... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/protobuf/core_worker.proto | Protocol Buffers | syntax = "proto3";
package ray.rpc;
import "src/ray/protobuf/common.proto";
message ActiveObjectIDs {
repeated bytes object_ids = 1;
}
// Persistent state of an ActorHandle.
message ActorHandle {
// ID of the actor.
bytes actor_id = 1;
// ID of the job that created the actor (it is possible that the handle... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/protobuf/gcs.proto | Protocol Buffers | syntax = "proto3";
package ray.rpc;
import "src/ray/protobuf/common.proto";
option java_package = "org.ray.runtime.generated";
// These indexes are mapped to strings in ray_redis_module.cc.
enum TablePrefix {
TABLE_PREFIX_MIN = 0;
UNUSED = 1;
TASK = 2;
RAYLET_TASK = 3;
CLIENT = 4;
OBJECT = 5;
ACTOR = ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/protobuf/gcs_service.proto | Protocol Buffers | syntax = "proto3";
package ray.rpc;
import "src/ray/protobuf/gcs.proto";
message AddJobRequest {
JobTableData data = 1;
}
message AddJobReply {
bool success = 1;
}
message MarkJobFinishedRequest {
bytes job_id = 1;
}
message MarkJobFinishedReply {
bool success = 1;
}
// Service for job info access.
servi... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/protobuf/node_manager.proto | Protocol Buffers | syntax = "proto3";
package ray.rpc;
import "src/ray/protobuf/common.proto";
// Request a worker from the raylet with the specified resources.
message RequestWorkerLeaseRequest {
// TaskSpec containing the requested resources.
TaskSpec resource_spec = 1;
}
message RequestWorkerLeaseReply {
// Address of the le... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/protobuf/object_manager.proto | Protocol Buffers | syntax = "proto3";
package ray.rpc;
message PushRequest {
// The push ID to allow the receiver to differentiate different push attempts
// from the same sender.
bytes push_id = 1;
// The object ID being transferred.
bytes object_id = 2;
// The client ID of client sending this object
bytes client_id = 3;... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/protobuf/serialization.proto | Protocol Buffers | syntax = "proto3";
package ray.serialization;
// This is the protocol for python object serialization with pickle5.
//
// ## About Pickle 5 Protocol
// Pickle5 will create two things during serialization:
// 1. Inband data. This is the framed pickle data for most objects.
// 2. Buffers. They are python buffers re... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/actor_registration.cc | C++ | #include "ray/raylet/actor_registration.h"
#include <sstream>
#include "ray/util/logging.h"
namespace ray {
namespace raylet {
ActorRegistration::ActorRegistration(const ActorTableData &actor_table_data)
: actor_table_data_(actor_table_data) {
// The first task submitted on each new actor handle will depend ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/actor_registration.h | C/C++ Header | #ifndef RAY_RAYLET_ACTOR_REGISTRATION_H
#define RAY_RAYLET_ACTOR_REGISTRATION_H
#include <unordered_map>
#include "ray/common/id.h"
#include "ray/common/task/task.h"
#include "ray/protobuf/gcs.pb.h"
namespace ray {
namespace raylet {
using rpc::ActorTableData;
using ActorState = rpc::ActorTableData::ActorState;
us... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/client_connection_test.cc | C++ | #include <list>
#include <memory>
#include <boost/asio.hpp>
#include <boost/asio/error.hpp>
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "ray/common/client_connection.h"
namespace ray {
namespace raylet {
class ClientConnectionTest : public ::testing::Test {
public:
ClientConnectionTest()
: i... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/lineage_cache.cc | C++ | #include "lineage_cache.h"
#include <sstream>
#include "ray/gcs/redis_gcs_client.h"
#include "ray/stats/stats.h"
namespace ray {
namespace raylet {
LineageEntry::LineageEntry(const Task &task, GcsStatus status)
: status_(status), task_(task) {
ComputeParentTaskIds();
}
GcsStatus LineageEntry::GetStatus() cons... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/lineage_cache.h | C/C++ Header | #ifndef RAY_RAYLET_LINEAGE_CACHE_H
#define RAY_RAYLET_LINEAGE_CACHE_H
#include <gtest/gtest_prod.h>
#if defined(__clang__) && defined(_MSC_VER)
// TODO(mehrdadn): Remove this Windows (clang-cl) workaround once we upgrade to
// Boost > 1.68: https://lists.boost.org/Archives/boost/2018/09/243420.php
#include <boost/type... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/lineage_cache_test.cc | C++ | #include <list>
#include <memory>
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "ray/common/task/task.h"
#include "ray/common/task/task_execution_spec.h"
#include "ray/common/task/task_spec.h"
#include "ray/common/task/task_util.h"
#include "ray/gcs/callback.h"
#include "ray/gcs/redis_accessor.h"
#inclu... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/main.cc | C++ | #include <iostream>
#include "gflags/gflags.h"
#include "ray/common/id.h"
#include "ray/common/ray_config.h"
#include "ray/common/status.h"
#include "ray/common/task/task_common.h"
#include "ray/raylet/raylet.h"
#include "ray/stats/stats.h"
DEFINE_string(raylet_socket_name, "", "The socket name of raylet.");
DEFINE_s... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/mock_gcs_client.cc | C++ | #include <functional>
#include <iostream>
#include "ray/raylet/mock_gcs_client.h"
namespace ray {
ray::Status ObjectTable::GetObjectClientIDs(const ray::ObjectID &object_id,
const ClientIDsCallback &success,
const FailCallback &f... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/mock_gcs_client.h | C/C++ Header | #ifndef RAY_RAYLET_MOCK_GCS_CLIENT_H
#define RAY_RAYLET_MOCK_GCS_CLIENT_H
#include <cstdint>
#include <functional>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <boost/asio.hpp>
#include <boost/asio/error.hpp>
#include <boost/bind.hpp>
#include "ray/common/id.h"
#include... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/monitor.cc | C++ | #include "ray/raylet/monitor.h"
#include "ray/common/ray_config.h"
#include "ray/common/status.h"
#include "ray/gcs/pb_util.h"
#include "ray/util/util.h"
namespace ray {
namespace raylet {
/// \class Monitor
///
/// The monitor is responsible for listening for heartbeats from Raylets and
/// deciding when a Raylet ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/monitor.h | C/C++ Header | #ifndef RAY_RAYLET_MONITOR_H
#define RAY_RAYLET_MONITOR_H
#include <memory>
#include <unordered_set>
#include "ray/common/id.h"
#include "ray/gcs/redis_gcs_client.h"
namespace ray {
namespace raylet {
using rpc::GcsNodeInfo;
using rpc::HeartbeatBatchTableData;
using rpc::HeartbeatTableData;
class Monitor {
publi... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/monitor_main.cc | C++ | #include <iostream>
#include "ray/common/ray_config.h"
#include "ray/raylet/monitor.h"
#include "ray/util/util.h"
#include "gflags/gflags.h"
DEFINE_string(redis_address, "", "The ip address of redis.");
DEFINE_int32(redis_port, -1, "The port of redis.");
DEFINE_string(config_list, "", "The config list of raylet.");
... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/node_manager.cc | C++ | #include "ray/raylet/node_manager.h"
#include <cctype>
#include <fstream>
#include <memory>
#include "ray/common/buffer.h"
#include "ray/common/common_protocol.h"
#include "ray/common/id.h"
#include "ray/common/status.h"
#include "ray/gcs/pb_util.h"
#include "ray/raylet/format/node_manager_generated.h"
#include "ray/... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/node_manager.h | C/C++ Header | #ifndef RAY_RAYLET_NODE_MANAGER_H
#define RAY_RAYLET_NODE_MANAGER_H
#include <boost/asio/steady_timer.hpp>
// clang-format off
#include "ray/rpc/grpc_client.h"
#include "ray/rpc/node_manager/node_manager_server.h"
#include "ray/rpc/node_manager/node_manager_client.h"
#include "ray/common/task/task.h"
#include "ray/co... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/object_manager_integration_test.cc | C++ | #include <iostream>
#include <thread>
#include "gtest/gtest.h"
#include "ray/common/status.h"
#include "ray/raylet/raylet.h"
namespace ray {
namespace raylet {
std::string test_executable;
std::string store_executable;
// TODO(hme): Get this working once the dust settles.
class TestObjectManagerBase : public ::t... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/raylet.cc | C++ | #include "raylet.h"
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <iostream>
#include "ray/common/status.h"
namespace {
const std::vector<std::string> GenerateEnumNames(const char *const *enum_names_ptr,
... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/raylet.h | C/C++ Header | #ifndef RAY_RAYLET_RAYLET_H
#define RAY_RAYLET_RAYLET_H
#include <list>
#include <boost/asio.hpp>
#include <boost/asio/error.hpp>
// clang-format off
#include "ray/raylet/node_manager.h"
#include "ray/object_manager/object_manager.h"
#include "ray/common/task/scheduling_resources.h"
// clang-format on
namespace ray... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/raylet_client.cc | C++ | #include "raylet_client.h"
#include <inttypes.h>
#include <netdb.h>
#include <netinet/in.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
#include "ray/common/common_protocol.h"
#include "ray/com... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/raylet_client.h | C/C++ Header | #ifndef RAYLET_CLIENT_H
#define RAYLET_CLIENT_H
#include <ray/protobuf/gcs.pb.h>
#include <unistd.h>
#include <boost/asio/detail/socket_holder.hpp>
#include <mutex>
#include <unordered_map>
#include <vector>
#include "ray/common/status.h"
#include "ray/common/task/task_spec.h"
#include "ray/rpc/node_manager/node_man... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/reconstruction_policy.cc | C++ | #include "reconstruction_policy.h"
#include "ray/stats/stats.h"
namespace ray {
namespace raylet {
ReconstructionPolicy::ReconstructionPolicy(
boost::asio::io_service &io_service,
std::function<void(const TaskID &, const ObjectID &)> reconstruction_handler,
int64_t initial_reconstruction_timeout_ms, con... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/reconstruction_policy.h | C/C++ Header | #ifndef RAY_RAYLET_RECONSTRUCTION_POLICY_H
#define RAY_RAYLET_RECONSTRUCTION_POLICY_H
#include <functional>
#include <unordered_map>
#include <unordered_set>
#include <boost/asio.hpp>
#include "ray/common/id.h"
#include "ray/gcs/tables.h"
#include "ray/object_manager/object_directory.h"
namespace ray {
namespace ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/reconstruction_policy_test.cc | C++ | #include <list>
#include "absl/time/clock.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <boost/asio.hpp>
#include "ray/gcs/callback.h"
#include "ray/gcs/redis_accessor.h"
#include "ray/raylet/format/node_manager_generated.h"
#include "ray/raylet/reconstruction_policy.h"
#include "ray/object_manager... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/scheduling_policy.cc | C++ | #include <algorithm>
#include <chrono>
#include <random>
#include "scheduling_policy.h"
#include "ray/util/logging.h"
namespace ray {
namespace raylet {
SchedulingPolicy::SchedulingPolicy(const SchedulingQueue &scheduling_queue)
: scheduling_queue_(scheduling_queue),
gen_(std::chrono::high_resolution_clo... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/scheduling_policy.h | C/C++ Header | #ifndef RAY_RAYLET_SCHEDULING_POLICY_H
#define RAY_RAYLET_SCHEDULING_POLICY_H
#include <random>
#include <unordered_map>
#include "ray/common/task/scheduling_resources.h"
#include "ray/raylet/scheduling_queue.h"
namespace ray {
namespace raylet {
/// \class SchedulingPolicy
/// \brief Implements a scheduling polic... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/scheduling_queue.cc | C++ | #include "scheduling_queue.h"
#include <sstream>
#include "ray/common/status.h"
#include "ray/stats/stats.h"
namespace {
static constexpr const char *task_state_strings[] = {
"placeable", "waiting", "ready",
"running", "infeasible", "waiting for actor creation",
"swap"};
static_assert(sizeof(task_s... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/scheduling_queue.h | C/C++ Header | #ifndef RAY_RAYLET_SCHEDULING_QUEUE_H
#define RAY_RAYLET_SCHEDULING_QUEUE_H
#include <array>
#include <list>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "ray/common/task/task.h"
#include "ray/util/logging.h"
#include "ray/util/ordered_set.h"
namespace ray {
namespace raylet {
enum ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/task_dependency_manager.cc | C++ | #include "task_dependency_manager.h"
#include "absl/time/clock.h"
#include "ray/stats/stats.h"
namespace ray {
namespace raylet {
TaskDependencyManager::TaskDependencyManager(
ObjectManagerInterface &object_manager,
ReconstructionPolicyInterface &reconstruction_policy,
boost::asio::io_service &io_servi... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/task_dependency_manager.h | C/C++ Header | #ifndef RAY_RAYLET_TASK_DEPENDENCY_MANAGER_H
#define RAY_RAYLET_TASK_DEPENDENCY_MANAGER_H
// clang-format off
#include "ray/common/id.h"
#include "ray/common/task/task.h"
#include "ray/gcs/redis_gcs_client.h"
#include "ray/object_manager/object_manager.h"
#include "ray/raylet/reconstruction_policy.h"
// clang-format o... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/task_dependency_manager_test.cc | C++ | #include <list>
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <boost/asio.hpp>
#include "ray/common/task/task_util.h"
#include "ray/gcs/redis_accessor.h"
#include "ray/gcs/redis_gcs_client.h"
#include "ray/raylet/task_dependency_manager.h"
#include "ray/util/test_util.h"
namespace ray {
namespace rayl... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/worker.cc | C++ | #include "worker.h"
#include <boost/bind.hpp>
#include "ray/raylet/format/node_manager_generated.h"
#include "ray/raylet/raylet.h"
#include "src/ray/protobuf/core_worker.grpc.pb.h"
#include "src/ray/protobuf/core_worker.pb.h"
namespace ray {
namespace raylet {
/// A constructor responsible for initializing the sta... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/worker.h | C/C++ Header | #ifndef RAY_RAYLET_WORKER_H
#define RAY_RAYLET_WORKER_H
#include <memory>
#include "ray/common/client_connection.h"
#include "ray/common/id.h"
#include "ray/common/task/scheduling_resources.h"
#include "ray/common/task/task.h"
#include "ray/common/task/task_common.h"
#include "ray/rpc/worker/core_worker_client.h"
#in... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/worker_pool.cc | C++ | #include "ray/raylet/worker_pool.h"
#include <sys/wait.h>
#include <algorithm>
#include <boost/asio/io_service.hpp>
#include <boost/process/args.hpp>
#include <boost/process/async.hpp>
#include <boost/process/search_path.hpp>
#include "ray/common/constants.h"
#include "ray/common/ray_config.h"
#include "ray/common/... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/worker_pool.h | C/C++ Header | #ifndef RAY_RAYLET_WORKER_POOL_H
#define RAY_RAYLET_WORKER_POOL_H
#include <inttypes.h>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <boost/asio/io_service.hpp>
#include "gtest/gtest.h"
#include "ray/common/client_connection.h"
#include "ray/common/task/task.h"
#include "ray/common/t... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/raylet/worker_pool_test.cc | C++ | #include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "ray/common/constants.h"
#include "ray/raylet/node_manager.h"
#include "ray/raylet/worker_pool.h"
namespace ray {
namespace raylet {
int NUM_WORKERS_PER_PROCESS = 3;
int MAXIMUM_STARTUP_CONCURRENCY = 5;
std::vector<Language> LANGUAGES = {Language::PYTHON, ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/rpc/client_call.h | C/C++ Header | #ifndef RAY_RPC_CLIENT_CALL_H
#define RAY_RPC_CLIENT_CALL_H
#include <grpcpp/grpcpp.h>
#include <boost/asio.hpp>
#include "absl/synchronization/mutex.h"
#include "ray/common/grpc_util.h"
#include "ray/common/status.h"
namespace ray {
namespace rpc {
/// Represents an outgoing gRPC request.
///
/// NOTE(hchen): Comp... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/rpc/gcs_server/gcs_rpc_client.h | C/C++ Header | #ifndef RAY_RPC_GCS_RPC_CLIENT_H
#define RAY_RPC_GCS_RPC_CLIENT_H
#include "src/ray/rpc/grpc_client.h"
namespace ray {
namespace rpc {
/// Client used for communicating with gcs server.
class GcsRpcClient {
public:
/// Constructor.
///
/// \param[in] address Address of gcs server.
/// \param[in] port Port o... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/rpc/gcs_server/gcs_rpc_server.h | C/C++ Header | #ifndef RAY_RPC_GCS_RPC_SERVER_H
#define RAY_RPC_GCS_RPC_SERVER_H
#include "src/ray/rpc/grpc_server.h"
#include "src/ray/rpc/server_call.h"
#include "src/ray/protobuf/gcs_service.grpc.pb.h"
namespace ray {
namespace rpc {
#define JOB_INFO_SERVICE_RPC_HANDLER(HANDLER, CONCURRENCY) \
RPC_SERVICE_HANDLER(JobInfoGcsS... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/rpc/grpc_client.h | C/C++ Header | #ifndef RAY_RPC_GRPC_CLIENT_H
#define RAY_RPC_GRPC_CLIENT_H
#include <grpcpp/grpcpp.h>
#include <boost/asio.hpp>
#include "ray/common/grpc_util.h"
#include "ray/common/status.h"
#include "ray/rpc/client_call.h"
namespace ray {
namespace rpc {
// This macro wraps the logic to call a specific RPC method of a service,... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/rpc/grpc_server.cc | C++ | #include "src/ray/rpc/grpc_server.h"
#include <grpcpp/impl/service_type.h>
#include <boost/asio/detail/socket_holder.hpp>
namespace ray {
namespace rpc {
GrpcServer::GrpcServer(std::string name, const uint32_t port, int num_threads)
: name_(std::move(name)), port_(port), is_closed_(true), num_threads_(num_thread... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/rpc/grpc_server.h | C/C++ Header | #ifndef RAY_RPC_GRPC_SERVER_H
#define RAY_RPC_GRPC_SERVER_H
#include <grpcpp/grpcpp.h>
#include <boost/asio.hpp>
#include <thread>
#include <utility>
#include "ray/common/status.h"
#include "ray/rpc/server_call.h"
namespace ray {
namespace rpc {
#define RPC_SERVICE_HANDLER(SERVICE, HANDLER, CONCURRENCY) ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/rpc/node_manager/node_manager_client.h | C/C++ Header | #ifndef RAY_RPC_NODE_MANAGER_CLIENT_H
#define RAY_RPC_NODE_MANAGER_CLIENT_H
#include <grpcpp/grpcpp.h>
#include <thread>
#include "ray/common/status.h"
#include "ray/rpc/grpc_client.h"
#include "ray/util/logging.h"
#include "src/ray/protobuf/node_manager.grpc.pb.h"
#include "src/ray/protobuf/node_manager.pb.h"
name... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/rpc/node_manager/node_manager_server.h | C/C++ Header | #ifndef RAY_RPC_NODE_MANAGER_SERVER_H
#define RAY_RPC_NODE_MANAGER_SERVER_H
#include "ray/rpc/grpc_server.h"
#include "ray/rpc/server_call.h"
#include "src/ray/protobuf/node_manager.grpc.pb.h"
#include "src/ray/protobuf/node_manager.pb.h"
namespace ray {
namespace rpc {
/// NOTE: See src/ray/core_worker/core_worker.... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/rpc/object_manager/object_manager_client.h | C/C++ Header | #ifndef RAY_RPC_OBJECT_MANAGER_CLIENT_H
#define RAY_RPC_OBJECT_MANAGER_CLIENT_H
#include <thread>
#include <grpcpp/grpcpp.h>
#include <grpcpp/resource_quota.h>
#include <grpcpp/support/channel_arguments.h>
#include "ray/common/status.h"
#include "ray/util/logging.h"
#include "src/ray/protobuf/object_manager.grpc.pb.... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/rpc/object_manager/object_manager_server.h | C/C++ Header | #ifndef RAY_RPC_OBJECT_MANAGER_SERVER_H
#define RAY_RPC_OBJECT_MANAGER_SERVER_H
#include "src/ray/rpc/grpc_server.h"
#include "src/ray/rpc/server_call.h"
#include "src/ray/protobuf/object_manager.grpc.pb.h"
#include "src/ray/protobuf/object_manager.pb.h"
namespace ray {
namespace rpc {
#define RAY_OBJECT_MANAGER_RP... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/rpc/server_call.h | C/C++ Header | #ifndef RAY_RPC_SERVER_CALL_H
#define RAY_RPC_SERVER_CALL_H
#include <grpcpp/grpcpp.h>
#include <boost/asio.hpp>
#include "ray/common/grpc_util.h"
#include "ray/common/status.h"
namespace ray {
namespace rpc {
/// Represents the callback function to be called when a `ServiceHandler` finishes
/// handling a request.... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/rpc/worker/core_worker_client.h | C/C++ Header | #ifndef RAY_RPC_CORE_WORKER_CLIENT_H
#define RAY_RPC_CORE_WORKER_CLIENT_H
#include <grpcpp/grpcpp.h>
#include <deque>
#include <memory>
#include <mutex>
#include <thread>
#include "absl/base/thread_annotations.h"
#include "absl/hash/hash.h"
#include "ray/common/status.h"
#include "ray/rpc/grpc_client.h"
#include "ra... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/rpc/worker/core_worker_server.h | C/C++ Header | #ifndef RAY_RPC_CORE_WORKER_SERVER_H
#define RAY_RPC_CORE_WORKER_SERVER_H
#include "ray/rpc/grpc_server.h"
#include "ray/rpc/server_call.h"
#include "src/ray/protobuf/core_worker.grpc.pb.h"
#include "src/ray/protobuf/core_worker.pb.h"
namespace ray {
class CoreWorker;
namespace rpc {
/// NOTE: See src/ray/core_wo... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/stats/metric.cc | C++ | #include "ray/stats/metric.h"
namespace ray {
namespace stats {
static void RegisterAsView(opencensus::stats::ViewDescriptor view_descriptor,
const std::vector<opencensus::tags::TagKey> &keys) {
// Register global keys.
for (const auto &tag : ray::stats::StatsConfig::instance().GetGlob... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/stats/metric.h | C/C++ Header | #ifndef RAY_STATS_METRIC_H
#define RAY_STATS_METRIC_H
#include <memory>
#include <unordered_map>
#include "opencensus/exporters/stats/prometheus/prometheus_exporter.h"
#include "opencensus/stats/stats.h"
#include "opencensus/tags/tag_key.h"
#include "prometheus/exposer.h"
#include "ray/util/logging.h"
namespace ray... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/stats/metric_defs.h | C/C++ Header | #ifndef RAY_STATS_METRIC_DEFS_H
#define RAY_STATS_METRIC_DEFS_H
/// The definitions of metrics that you can use everywhere.
///
/// There are 4 types of metric:
/// Histogram: Histogram distribution of metric points.
/// Gauge: Keeps the last recorded value, drops everything before.
/// Count: The count of the n... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/stats/stats.h | C/C++ Header | #ifndef RAY_STATS_STATS_H
#define RAY_STATS_STATS_H
#include <exception>
#include <string>
#include <unordered_map>
#include "opencensus/exporters/stats/prometheus/prometheus_exporter.h"
#include "opencensus/exporters/stats/stdout/stdout_exporter.h"
#include "opencensus/stats/stats.h"
#include "opencensus/tags/tag_ke... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/stats/stats_test.cc | C++ | #include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "absl/memory/memory.h"
#include "ray/stats/stats.h"
namespace ray {
class MockExporter : public opencensus::stats::StatsExporter::Handler {
public:
static void Register() {
ope... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/stats/tag_defs.h | C/C++ Header | #ifndef RAY_STATS_TAG_DEFS_H
#define RAY_STATS_TAG_DEFS_H
/// The definitions of tag keys that you can use every where.
/// You can follow these examples to define and register your tag keys.
using TagKeyType = opencensus::tags::TagKey;
using TagsType = std::vector<std::pair<opencensus::tags::TagKey, std::string>>;
... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/test/run_core_worker_tests.sh | Shell | #!/usr/bin/env bash
# This needs to be run in the root directory.
# Try to find an unused port for raylet to use.
PORTS="2000 2001 2002 2003 2004 2005 2006 2007 2008 2009"
RAYLET_PORT=0
for port in $PORTS; do
nc -z localhost $port
if [[ $? != 0 ]]; then
RAYLET_PORT=$port
break
fi
done
if ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/test/run_object_manager_tests.sh | Shell | #!/usr/bin/env bash
# This needs to be run in the root directory.
# Cause the script to exit if a single command fails.
set -e
set -x
bazel build "//:object_manager_stress_test" "//:object_manager_test" "@plasma//:plasma_store_server"
# Get the directory in which this script is executing.
SCRIPT_DIR="`dirname \"$0\... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/test/run_object_manager_valgrind.sh | Shell | #!/usr/bin/env bash
# This needs to be run in the root directory.
# Cause the script to exit if a single command fails.
set -e
set -x
bazel build "//:object_manager_stress_test" "//:object_manager_test" "@plasma//:plasma_store_server"
# Get the directory in which this script is executing.
SCRIPT_DIR="`dirname \"$0\... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/util/logging.cc | C++ | #include "ray/util/logging.h"
#ifndef _WIN32
#include <execinfo.h>
#endif
#include <signal.h>
#include <stdlib.h>
#include <algorithm>
#include <cstdlib>
#include <iostream>
#ifdef RAY_USE_GLOG
#include <sys/stat.h>
#include "glog/logging.h"
#endif
namespace ray {
#ifdef RAY_USE_GLOG
struct StdoutLogger : public g... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
src/ray/util/logging.h | C/C++ Header | #ifndef RAY_UTIL_LOGGING_H
#define RAY_UTIL_LOGGING_H
#include <iostream>
#include <string>
#if defined(_WIN32)
#ifndef _WINDOWS_
#ifndef WIN32_LEAN_AND_MEAN // Sorry for the inconvenience. Please include any related
// headers you need manually.
// (https://... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.