mirror of
https://github.com/matrix-construct/construct
synced 2024-10-31 19:08:59 +01:00
ircd::gpt: Improve build related; debug/assertions.
This commit is contained in:
parent
858479b6ab
commit
eba5d7f586
4 changed files with 11 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,7 +4,6 @@ Makefile
|
|||
*.o
|
||||
*.so
|
||||
*.lo
|
||||
*.clo
|
||||
*.la
|
||||
*.orig
|
||||
*.log
|
||||
|
|
|
@ -24,6 +24,9 @@ enum ircd_gpt_hypercall
|
|||
/// sets this value; it is the initial value set by the host before
|
||||
/// execution.
|
||||
IRCD_GPT_ECOMPLETE = 0,
|
||||
|
||||
/// Erroneous token buffer
|
||||
IRCD_GPT_ETOKENS = -1,
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -219,11 +219,11 @@ libircd_la_SOURCES += cl.cc
|
|||
endif
|
||||
libircd_la_SOURCES += gpt.cc
|
||||
libircd_la_SOURCES += gpt_pipe.cc
|
||||
if OPENCL
|
||||
BUILT_SOURCES += gpt_cl.clo
|
||||
endif
|
||||
libircd_la_SOURCES += gpt_model.cc
|
||||
libircd_la_SOURCES += gpt_vocab.cc
|
||||
if OPENCL
|
||||
BUILT_SOURCES += gpt_cl.o
|
||||
endif
|
||||
libircd_la_SOURCES += openssl.cc
|
||||
libircd_la_SOURCES += rfc1459.cc
|
||||
libircd_la_SOURCES += rfc3986.cc
|
||||
|
@ -353,5 +353,5 @@ endif
|
|||
default.profdata:
|
||||
-$(LLVM_PROFDATA) merge -output=default.profdata default.proftext
|
||||
|
||||
gpt_cl.clo: gpt_cl.cl
|
||||
clang++-11 -std=CL1.1 -c -pipe -Xclang -finclude-default-header -o gpt_cl.clo $^
|
||||
gpt_cl.o: gpt_cl.cl
|
||||
$(CC) -std=CL1.1 $(AM_CPPFLAGS) $(CPPFLAGS) $(DEFS) -Xclang -finclude-default-header -include "ircd/config.h" -o $@ -c $^
|
||||
|
|
|
@ -379,6 +379,8 @@ ircd::gpt::pipe::code::compile_opts
|
|||
" -cl-mad-enable"
|
||||
" -cl-single-precision-constant"
|
||||
//" -cl-fp32-correctly-rounded-divide-sqrt"
|
||||
|
||||
" -cl-kernel-arg-info"
|
||||
};
|
||||
|
||||
ircd::gpt::pipe::code::code()
|
||||
|
@ -893,6 +895,7 @@ noexcept
|
|||
{
|
||||
case IRCD_GPT_ACCEPT: return "ACCEPT";
|
||||
case IRCD_GPT_ECOMPLETE: return "ECOMPLETE";
|
||||
case IRCD_GPT_ETOKENS: return "ETOKENS";
|
||||
}
|
||||
|
||||
return "??????";
|
||||
|
|
Loading…
Reference in a new issue