mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-13 14:39:10 +00:00
Get radpajama to build
make -j8 o//third_party/radpajama/radpajama.com make -j8 o//third_party/radpajama/radpajama-chat.com This change gets the radpajama.mk config working. This package depends on THIRD_PARTY_GGML but it's configured to call ggjt_v1(), so that the library will provide the old quantizers. The ggml_quantize_chunk() API will now dispatch to older quantizers based on the configured version.
This commit is contained in:
parent
410c8785c9
commit
282dd8e7b7
36 changed files with 707 additions and 20995 deletions
6
third_party/make/job.c
vendored
6
third_party/make/job.c
vendored
|
@ -1810,7 +1810,7 @@ unveil_variable (const struct variable *var)
|
|||
return -1;
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
get_base_cpu_freq_mhz (void)
|
||||
{
|
||||
return KCPUIDS(16H, EAX) & 0x7fff;
|
||||
|
@ -1830,7 +1830,7 @@ set_limit (int r, long lo, long hi)
|
|||
return setrlimit (r, &lim);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
set_cpu_limit (int secs)
|
||||
{
|
||||
int mhz, lim;
|
||||
|
@ -1954,6 +1954,7 @@ child_execute_job (struct childbase *child,
|
|||
strict ? " in .STRICT mode" : "",
|
||||
internet ? " with internet access" : ""));
|
||||
|
||||
#ifdef __x86_64__
|
||||
/* [jart] Set cpu seconds quota. */
|
||||
if (RLIMIT_CPU < RLIM_NLIMITS &&
|
||||
(s = get_target_variable (STRING_SIZE_TUPLE (".CPU"),
|
||||
|
@ -1966,6 +1967,7 @@ child_execute_job (struct childbase *child,
|
|||
else
|
||||
DB (DB_JOBS, (_("Failed to set CPU limit: %s\n"), strerror (errno)));
|
||||
}
|
||||
#endif /* __x86_64__ */
|
||||
|
||||
/* [jart] Set virtual memory quota. */
|
||||
if (RLIMIT_AS < RLIM_NLIMITS &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue