mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-24 06:27:22 +00:00
Remove this as it is no longer useful.
This commit is contained in:
parent
7ee32d605f
commit
6be64e6b85
@ -142,11 +142,6 @@ target_link_libraries(chat
|
|||||||
set(COMPONENT_NAME_MAIN ${PROJECT_NAME})
|
set(COMPONENT_NAME_MAIN ${PROJECT_NAME})
|
||||||
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install)
|
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install)
|
||||||
|
|
||||||
if(NOT (CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64"))
|
|
||||||
add_executable(test_hw test_hw.cpp)
|
|
||||||
install(TARGETS test_hw DESTINATION bin COMPONENT ${COMPONENT_NAME_MAIN})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
install(TARGETS chat DESTINATION bin COMPONENT ${COMPONENT_NAME_MAIN})
|
install(TARGETS chat DESTINATION bin COMPONENT ${COMPONENT_NAME_MAIN})
|
||||||
install(TARGETS llmodel DESTINATION lib COMPONENT ${COMPONENT_NAME_MAIN})
|
install(TARGETS llmodel DESTINATION lib COMPONENT ${COMPONENT_NAME_MAIN})
|
||||||
|
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
#if __GNUC__
|
|
||||||
static bool avx = __builtin_cpu_supports("avx");
|
|
||||||
static bool avx2 = __builtin_cpu_supports("avx2");
|
|
||||||
static bool fma = __builtin_cpu_supports("fma");
|
|
||||||
static bool sse3 = __builtin_cpu_supports("sse3");
|
|
||||||
static std::string s;
|
|
||||||
s = "gpt4all hardware test results:\n";
|
|
||||||
s += " AVX = " + std::to_string(avx) + "\n";
|
|
||||||
s += " AVX2 = " + std::to_string(avx2) + "\n";
|
|
||||||
s += " FMA = " + std::to_string(fma) + "\n";
|
|
||||||
s += " SSE3 = " + std::to_string(sse3) + "\n";
|
|
||||||
fprintf(stderr, "%s", s.c_str());
|
|
||||||
fprintf(stderr, "your hardware supports the \"");
|
|
||||||
fflush(stderr);
|
|
||||||
if (avx2)
|
|
||||||
printf("full");
|
|
||||||
else if (avx && fma)
|
|
||||||
printf("avx_only");
|
|
||||||
else
|
|
||||||
printf("bare_minimum");
|
|
||||||
fflush(stdout);
|
|
||||||
fprintf(stderr, "\" version of gpt4all.\n");
|
|
||||||
fflush(stderr);
|
|
||||||
#endif
|
|
||||||
return 0;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user