0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-09 05:29:00 +02:00

configure: Remove Mesa cruft.

ircd/Makefile: Use CC prog variable.
This commit is contained in:
Jason Volk 2022-08-26 17:04:57 -07:00
parent 50c5c43d29
commit 02cd570b5e
2 changed files with 1 additions and 23 deletions

View file

@ -2541,18 +2541,6 @@ PKG_CHECK_MODULES(OpenCL, [OpenCL],
]) ])
]) ])
PKG_CHECK_MODULES(MesaOpenCL, [MesaOpenCL],
[
have_mesa_opencl="yes"
], [
AC_CHECK_LIB(MesaOpenCL, clGetPlatformInfo,
[
have_mesa_opencl="yes"
], [
have_mesa_opencl="no"
])
])
AC_MSG_CHECKING(whether to disable use of any found OpenCL) AC_MSG_CHECKING(whether to disable use of any found OpenCL)
AC_ARG_ENABLE(opencl, RB_HELP_STRING([--disable-opencl], [Disable OpenCL support]), AC_ARG_ENABLE(opencl, RB_HELP_STRING([--disable-opencl], [Disable OpenCL support]),
[ [
@ -2565,21 +2553,12 @@ AC_ARG_ENABLE(opencl, RB_HELP_STRING([--disable-opencl], [Disable OpenCL support
AC_MSG_CHECKING(whether to enable use of any found OpenCL) AC_MSG_CHECKING(whether to enable use of any found OpenCL)
AM_CONDITIONAL([OPENCL], [test "x$have_opencl" = "xyes" && test "x$enable_opencl" = "xyes" ]) AM_CONDITIONAL([OPENCL], [test "x$have_opencl" = "xyes" && test "x$enable_opencl" = "xyes" ])
AM_CONDITIONAL([MESA_OPENCL], [test "x$have_mesa_opencl" = "xyes"])
AM_COND_IF([OPENCL], AM_COND_IF([OPENCL],
[ [
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
IRCD_DEFINE(USE_OPENCL, [1], [OpenCL support is available and enabled]) IRCD_DEFINE(USE_OPENCL, [1], [OpenCL support is available and enabled])
RB_VAR_APPEND([OPENCL_LIBS], ["-lOpenCL"]) RB_VAR_APPEND([OPENCL_LIBS], ["-lOpenCL"])
AM_COND_IF([MESA_OPENCL],
[
IRCD_DEFINE(USE_MESA_OPENCL, [1], [MesaOpenCL support is available and enabled])
RB_VAR_APPEND([OPENCL_LIBS], ["-lMesaOpenCL"])
], [
IRCD_DEFINE(USE_MESA_OPENCL, [0], [MesaOpenCL support is not available and disabled])
])
], [ ], [
IRCD_DEFINE(USE_OPENCL, [0], [OpenCL support is not available]) IRCD_DEFINE(USE_OPENCL, [0], [OpenCL support is not available])
]) ])
@ -3084,7 +3063,6 @@ echo "LLVM library support .............. $have_libllvm"
echo "DRM support ....................... $have_drm" echo "DRM support ....................... $have_drm"
echo "ARM NN support .................... $have_armnn" echo "ARM NN support .................... $have_armnn"
echo "OpenCL support .................... $have_opencl" echo "OpenCL support .................... $have_opencl"
echo "MesaOpenCL support ................ $have_mesa_opencl"
echo "Linux AIO support ................. $aio" echo "Linux AIO support ................. $aio"
echo "Linux io_uring support ............ $io_uring" echo "Linux io_uring support ............ $io_uring"
echo "Memory allocator .................. $alloc_lib" echo "Memory allocator .................. $alloc_lib"

View file

@ -443,7 +443,7 @@ GPU_ASFLAGS += -Rpass-analysis=asm-printer
BUILT_SOURCES += gpt_gpu.spv.bc BUILT_SOURCES += gpt_gpu.spv.bc
gpt_gpu.spv.bc: gpt_gpu.cl gpt_gpu.spv.bc: gpt_gpu.cl
clang-13 -target spir-- $(GPU_CPPFLAGS) -O0 -emit-llvm -o $@ -x cl -c $^ $(CC) -target spir-- $(GPU_CPPFLAGS) -O0 -emit-llvm -o $@ -x cl -c $^
BUILT_SOURCES += gpt_gpu.spv BUILT_SOURCES += gpt_gpu.spv
gpt_gpu.spv: gpt_gpu.spv.bc gpt_gpu.spv: gpt_gpu.spv.bc