Skip to content

Commit

Permalink
fix typo "RLIMIT_MLOCK" (ggerganov#5175)
Browse files Browse the repository at this point in the history
  • Loading branch information
divinity76 authored Jan 29, 2024
1 parent c82d18e commit 2aed77e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1158,10 +1158,10 @@ struct llama_mlock {
#ifdef __APPLE__
#define MLOCK_SUGGESTION \
"Try increasing the sysctl values 'vm.user_wire_limit' and 'vm.global_user_wire_limit' and/or " \
"decreasing 'vm.global_no_user_wire_amount'. Also try increasing RLIMIT_MLOCK (ulimit -l).\n"
"decreasing 'vm.global_no_user_wire_amount'. Also try increasing RLIMIT_MEMLOCK (ulimit -l).\n"
#else
#define MLOCK_SUGGESTION \
"Try increasing RLIMIT_MLOCK ('ulimit -l' as root).\n"
"Try increasing RLIMIT_MEMLOCK ('ulimit -l' as root).\n"
#endif

bool raw_lock(const void * addr, size_t size) const {
Expand Down

0 comments on commit 2aed77e

Please sign in to comment.