Skip to content

Commit

Permalink
[libc][obvious] Fix undefined variable after name change
Browse files Browse the repository at this point in the history
I forgot that we still used these variables in the loaders.

Differential Revision: https://reviews.llvm.org/D150362
  • Loading branch information
jhuber6 committed May 11, 2023
1 parent 4bc75f0 commit 30093d6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libc/startup/gpu/amdgpu/start.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extern "C" [[gnu::visibility("protected"), clang::amdgpu_kernel]] void
_begin(int argc, char **argv, char **env, void *rpc_shared_buffer) {
// We need to set up the RPC client first in case any of the constructors
// require it.
__llvm_libc::rpc::client.reset(__llvm_libc::rpc::default_port_count,
__llvm_libc::rpc::client.reset(__llvm_libc::rpc::DEFAULT_PORT_COUNT,
__llvm_libc::gpu::get_lane_size(),
rpc_shared_buffer);

Expand Down
2 changes: 1 addition & 1 deletion libc/startup/gpu/nvptx/start.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ extern "C" [[gnu::visibility("protected"), clang::nvptx_kernel]] void
_begin(int argc, char **argv, char **env, void *rpc_shared_buffer) {
// We need to set up the RPC client first in case any of the constructors
// require it.
__llvm_libc::rpc::client.reset(__llvm_libc::rpc::default_port_count,
__llvm_libc::rpc::client.reset(__llvm_libc::rpc::DEFAULT_PORT_COUNT,
__llvm_libc::gpu::get_lane_size(),
rpc_shared_buffer);

Expand Down
2 changes: 1 addition & 1 deletion libc/utils/gpu/loader/amdgpu/Loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ int load(int argc, char **argv, char **envp, void *image, size_t size,
hsa_amd_memory_fill(dev_ret, 0, sizeof(int));

// Allocate finegrained memory for the RPC server and client to share.
uint64_t port_size = __llvm_libc::rpc::default_port_count;
uint64_t port_size = __llvm_libc::rpc::DEFAULT_PORT_COUNT;
uint32_t wavefront_size = 0;
if (hsa_status_t err = hsa_agent_get_info(
dev_agent, HSA_AGENT_INFO_WAVEFRONT_SIZE, &wavefront_size))
Expand Down
2 changes: 1 addition & 1 deletion libc/utils/gpu/loader/nvptx/Loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ int load(int argc, char **argv, char **envp, void *image, size_t size,
if (CUresult err = cuMemsetD32(dev_ret, 0, 1))
handle_error(err);

uint64_t port_size = __llvm_libc::rpc::default_port_count;
uint64_t port_size = __llvm_libc::rpc::DEFAULT_PORT_COUNT;
uint32_t warp_size = 32;

uint64_t rpc_shared_buffer_size =
Expand Down

0 comments on commit 30093d6

Please sign in to comment.