about [UPDATING] [MOVED] [vuxml]summaryrefslograw-logtreecommitdiffstats
path: root/devel/ispc/Makefile [up]
Last 15 commits to file "devel/ispc/Makefile" in the last year: [ Last 15 commits to this file | All commits to this file ]
 
Commit messageAuthorDateFilesLines
* [ file ]devel/ispc: enable on powerpc64lePiotr Kubaj2026-09-24 13:53:52 +01001-1/+8
* [ file ]devel/ispc: specify versioned shared llvm library in LIB_DEPENDSTatsuki Makino2026-09-21 15:11:10 +01001-1/+1
* [ file ]devel/ispc: update 1.30.0 → 1.31.0Yuri Victorovich2026-06-27 12:16:15 +01001-7/+7
* [ file ]devel/ispc: update 1.29.1 → 1.30.0Yuri Victorovich2026-02-05 08:41:32 +00001-2/+6
* [ file ]devel/ispc: update 1.28.2 → 1.29.1Yuri Victorovich2026-01-20 15:33:01 +00001-1/+1
* [ file ]devel/tbb: Deprecate portGanael LAPLANCHE2026-01-17 11:41:33 +00001-1/+1
* [ file ]devel/ispc: update 1.28.1 → 1.28.2Yuri Victorovich2025-09-25 16:27:11 +01001-2/+2
* [ file ]devel/ispc: update 1.27.0 → 1.28.1Yuri Victorovich2025-08-23 22:50:13 +01001-2/+2
* [ file ]devel/ispc: update 1.26.0 → 1.27.0Yuri Victorovich2025-07-12 09:55:19 +01001-1/+1
* [ file ]devel/ispc: update 1.25.3 → 1.26.0Yuri Victorovich2025-02-09 10:03:08 +00001-2/+4
* [ file ]devel/ispc: update 1.25.2 → 1.25.3Yuri Victorovich2024-11-08 17:21:05 +00001-2/+3
* [ file ]devel/ispc: update 1.25.1 → 1.25.2Yuri Victorovich2024-11-03 05:25:13 +00001-4/+1
* [ file ]devel/ispc: update 1.24.0 → 1.25.1Yuri Victorovich2024-10-23 04:11:23 +01001-5/+7
* [ file ]devel/onetbb: Update to 2021.13.0Ganael LAPLANCHE2024-07-04 12:39:44 +01001-0/+1
* [ file ]devel/ispc: update 1.23.0 → 1.24.0Yuri Victorovich2024-05-28 09:12:12 +01001-2/+1
[...]


commit: (<title> <author> <date> etc.)
blob: 077daefbf03c7f36205c73e8acdd13f8499f3f08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
PORTNAME=	ispc
DISTVERSIONPREFIX=	v
DISTVERSION=	1.32.0
CATEGORIES=	devel

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Intel's compiler for high-performance SIMD programming
WWW=		https://ispc.github.io/ \
		https://github.com/ispc/ispc

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

ONLY_FOR_ARCHS=		aarch64 amd64 i386 powerpc64le
ONLY_FOR_ARCHS_REASON=	only available for these architectures

BUILD_DEPENDS=	${LOCALBASE}/bin/flex:textproc/flex \
		m4:devel/m4
LIB_DEPENDS=	${LLVM_LIBLLVM}:devel/llvm${LLVM_VERSION} \
		libtbb.so:devel/onetbb

USES=		bison cmake compiler:c++17-lang llvm:lib,min=20,max=20 python:build,test shebangfix
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_TUPLE=	google:googletest:6a7ed31:googletest/ispcrt/tests/vendor/google/googletest

SHEBANG_GLOB=	*.py

CONFIGURE_ENV=	PATH=${LOCALBASE}/llvm${LLVM_VERSION}/bin:${PATH} # see https://github.com/ispc/ispc/issues/2318
CMAKE_OFF=	ISPC_NO_DUMPS ISPCRT_BUILD_GPU ISPC_INCLUDE_TESTS ISPCRT_BUILD_TESTS ISPC_INCLUDE_EXAMPLES
CMAKE_ARGS=	-DLLVM_CONFIG_EXECUTABLE=${LOCALBASE}/llvm${LLVM_VERSION}/bin/llvm-config

BINARY_ALIAS=	flex=${LOCALBASE}/bin/flex python=${PYTHON_CMD} m4=${LOCALBASE}/bin/gm4

PLIST_SUB=	VERSION=${PORTVERSION}

OPTIONS_DEFINE_amd64=	ARM XE
OPTIONS_DEFINE_i386=	ARM

ARM_DESC=		Enable ARM support - requires ARM backend in LLVM
ARM_CMAKE_BOOL=		ARM_ENABLED

XE_DESC=		Enable Intel Xe support
XE_BUILD_DEPENDS=	${LOCALBASE}/llvm${LLVM_VERSION}/lib/libLLVMGenXIntrinsics.a:devel/vc-intrinsics@llvm${LLVM_VERSION}
XE_LIB_DEPENDS=		libze_loader.so:devel/level-zero \
			libLLVMSPIRVLib.so.${LLVM_VERSION}:devel/spirv-llvm-translator@llvm${LLVM_VERSION}
XE_CMAKE_BOOL=		XE_ENABLED
XE_CMAKE_BOOL_OFF=	ISPCRT_BUILD_TESTS
XE_CMAKE_ON=		-DXE_DEPS_DIR:PATH="${LOCALBASE}/llvm${LLVM_VERSION}" -DISPC_INCLUDE_XE_EXAMPLES=OFF
XE_PLIST_FILES=		include/ispcrt/ispcrt.h \
			include/ispcrt/ispcrt.hpp \
			include/ispcrt/ispcrt.isph \
			lib/cmake/ispcrt-${PORTVERSION}/Finddpcpp_compiler.cmake \
			lib/cmake/ispcrt-${PORTVERSION}/Findlevel_zero.cmake \
			lib/cmake/ispcrt-${PORTVERSION}/interop.cmake \
			lib/cmake/ispcrt-${PORTVERSION}/ispc.cmake \
			lib/cmake/ispcrt-${PORTVERSION}/ispcrtConfig.cmake \
			lib/cmake/ispcrt-${PORTVERSION}/ispcrt_Exports-%%CMAKE_BUILD_TYPE%%.cmake \
			lib/cmake/ispcrt-${PORTVERSION}/ispcrt_Exports.cmake \
			lib/libispcrt.so \
			lib/libispcrt.so.1 \
			lib/libispcrt.so.${PORTVERSION} \
			lib/libispcrt_static.a
XE_BROKEN=		Unknown architecture

.include <bsd.port.options.mk>

.if ${ARCH} == powerpc64le
CMAKE_ON+=	PPC64_ENABLED
CMAKE_OFF+=	ARM_ENABLED
.endif

do-test: # all tests pass
	@cd ${WRKSRC} && ISPC_HOME=${BUILD_WRKSRC}/bin ./scripts/run_tests.py

test-check-all: # the upstream claims that some of these checks are broken without using their patched llvm version, hence using llvm-devel
	@cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} check-all

run-examples: build
	@[ -f ${LOCALBASE}/lib/libtbb.so ] || ! echo "ERROR run-examples target requires devel/onetbb package installed"
.for e in simple sort mandelbrot stencil
	@cd ${WRKSRC}/examples/${e} && \
	${ECHO} "===> Running example ${e}" && \
	${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} && \
	./${e}
.endfor

# tests as of 1.31.0:
# 752 / 757 tests PASSED
# 0 / 757 tests FAILED compilation
# 0 / 757 tests FAILED execution
# 5 / 757 tests SKIPPED

.include <bsd.port.mk>
This site is maintained by Jamie Landeg-Jones <jamie@catflap.org>, and is not an official FreeBSD project, nor is it endorsed by the FreeBSD team.