Skip to content

Commit 7e23e42

Browse files
author
Caspar van Leeuwen
committed
Account for possibility that we have an AMD instead of NVIDIA accelerator, and in that case ALSO define the installpath including the accelerator subdir
1 parent 61c183e commit 7e23e42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

EESSI-extend-easybuild.eb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ if eessi_cvmfs_install then
134134
end
135135
easybuild_installpath = os.getenv("EESSI_SOFTWARE_PATH")
136136
-- enforce accelerator subdirectory usage for CVMFS installs (only if an accelerator install is requested)
137-
if (eessi_accelerator_target ~= nil) and (cuda_compute_capability ~= nil) and (os.getenv("EESSI_ACCELERATOR_INSTALL") ~= nil) then
137+
if (eessi_accelerator_target ~= nil) and (cuda_compute_capability ~= nil or amd_compute_capability ~= nil) and (os.getenv("EESSI_ACCELERATOR_INSTALL") ~= nil) then
138138
easybuild_installpath = pathJoin(easybuild_installpath, eessi_accelerator_target)
139139
end
140140
elseif eessi_site_install then

0 commit comments

Comments
 (0)