Skip to content

Commit 22736c4

Browse files
Fix(linux/fedora39) patch system headers so build succeeds with cuda (#2253)
Co-authored-by: Cameron Gutman <[email protected]>
1 parent 3e49e25 commit 22736c4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# ensure dockerfiles are checked out with LF line endings
2+
Dockerfile text eol=lf
3+
*.dockerfile text eol=lf

docker/fedora-39.dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ cuda_prefix="https://developer.download.nvidia.com/compute/cuda/"
8181
cuda_suffix=""
8282
if [[ "${TARGETPLATFORM}" == 'linux/arm64' ]]; then
8383
cuda_suffix="_sbsa"
84+
85+
# patch headers https://bugs.launchpad.net/ubuntu/+source/mumax3/+bug/2032624
86+
sed -i 's/__Float32x4_t/int/g' /usr/include/bits/math-vector.h
87+
sed -i 's/__Float64x2_t/int/g' /usr/include/bits/math-vector.h
88+
sed -i 's/__SVFloat32_t/float/g' /usr/include/bits/math-vector.h
89+
sed -i 's/__SVFloat64_t/float/g' /usr/include/bits/math-vector.h
90+
sed -i 's/__SVBool_t/int/g' /usr/include/bits/math-vector.h
8491
fi
8592
url="${cuda_prefix}${CUDA_VERSION}/local_installers/cuda_${CUDA_VERSION}_${CUDA_BUILD}_linux${cuda_suffix}.run"
8693
echo "cuda url: ${url}"

0 commit comments

Comments
 (0)