Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
base
Commits
3b70086d
Commit
3b70086d
authored
4 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
MNT: FSLMACHTYPE is no longer used by anything
parent
f1fea38f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3
Rf/copyrights
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
etc/fslconf/fsl-devel.sh
+1
-2
1 addition, 2 deletions
etc/fslconf/fsl-devel.sh
etc/fslconf/fsl.csh
+6
-8
6 additions, 8 deletions
etc/fslconf/fsl.csh
etc/fslconf/fslmachtype.sh
+0
-83
0 additions, 83 deletions
etc/fslconf/fslmachtype.sh
with
7 additions
and
93 deletions
etc/fslconf/fsl-devel.sh
+
1
−
2
View file @
3b70086d
...
...
@@ -7,8 +7,7 @@
# SHBASECOPYRIGHT
FSLCONFDIR
=
$FSLDIR
/config
FSLMACHTYPE
=
`
$FSLDIR
/etc/fslconf/fslmachtype.sh
`
export
FSLCONFDIR
FSLMACHTYPE
export
FSLCONFDIR
source
$FSLDIR
/etc/fslconf/fsl.sh
This diff is collapsed.
Click to expand it.
etc/fslconf/fsl.csh
+
6
−
8
View file @
3b70086d
# FSL configuration file
# FSL configuration file
# - to be sourced by the user, typically in .bashrc or equivalent
# - note that the user should set
# - note that the user should set
# Written by Mark Jenkinson
# FMRIB Analysis Group, University of Oxford
...
...
@@ -16,7 +16,7 @@
# to write files with a different format
setenv FSLOUTPUTTYPE NIFTI_GZ
# Comment out the definition of FSLMULTIFILEQUIT to enable
# Comment out the definition of FSLMULTIFILEQUIT to enable
# FSL programs to soldier on after detecting multiple image
# files with the same basename ( e.g. epi.hdr and epi.nii )
setenv FSLMULTIFILEQUIT TRUE
...
...
@@ -31,9 +31,9 @@ setenv FSLWISH $FSLDIR/bin/fslwish
# The following variables are used for running code in parallel across
# several machines ( i.e. for FDT )
setenv FSLLOCKDIR
setenv FSLMACHINELIST
setenv FSLREMOTECALL
setenv FSLLOCKDIR
setenv FSLMACHINELIST
setenv FSLREMOTECALL
# The following variables are used to configure CUDA capable queues - if you
# are using Grid Engine then this queue will be used to enqueue tasks that
...
...
@@ -43,8 +43,6 @@ setenv FSLGECUDAQ cuda.q
# Set up development variables (not for the faint-hearted)
# Uncomment the following if you wish to compile FSL source code
#setenv FSLCONFDIR $FSLDIR/config
#setenv FSLMACHTYPE `$FSLDIR/etc/fslconf/fslmachtype.sh`
###################################################
### Add other global environment variables here ###
...
...
This diff is collapsed.
Click to expand it.
etc/fslconf/fslmachtype.sh
deleted
100755 → 0
+
0
−
83
View file @
f1fea38f
#!/bin/sh
# FSL Host type identifier
# - Used by several scripts to identify the host type for build environment
# Written by Duncan Mortimer
# FMRIB Analysis Group, University of Oxford
# SHCOPYRIGHT
#### Identify machine ####
machtype
=
""
system_type
=
`
uname
-s
`
case
${
system_type
}
in
SunOS
)
AWK
=
nawk
;;
*
)
AWK
=
awk
;;
esac
gcc_version
=
`
gcc
-dumpversion
2> /dev/null
`
if
[
$?
-eq
0
]
;
then
# GCC is installed
gcc_version
=
`
echo
$gcc_version
|
$AWK
-F
.
'{ printf "%s.%s", $1,$2 }'
`
gcc_host
=
`
gcc
-dumpmachine
`
gcc_cpu_type
=
`
echo
$gcc_host
|
$AWK
-F
-
'{ printf "%s", $1; }'
`
gcc_os_vendor
=
`
echo
$gcc_host
|
$AWK
-F
-
'{ printf "%s", $2; }'
`
gcc_os_name
=
`
echo
$gcc_host
|
$AWK
-F
-
'{ printf "%s", $3; }'
`
case
${
system_type
}
in
Darwin
)
# We are going to build a universal (ppc32, ppc64, x86_32, x86_64)
# combined binary, so we only need 1 host type
os_release
=
`
uname
-r
|
$AWK
-F
.
'{ printf "%s", $1 }'
`
if
[
$os_release
-ge
12
]
;
then
# Using LLVM/clang from now on
llvm_vstr
=
`
cc
-v
2>&1
`
# Find the LLVM version and reduce to major.minor version number
llvm_v
=
`
echo
${
llvm_vstr
}
|
awk
'{ print $4 }'
|
cut
-d
.
-f
1,2
`
# Find the LLVM major version number
llvm_maj
=
`
echo
${
llvm_v
}
|
cut
-d
.
-f
1
`
if
[
${
llvm_maj
}
-ge
7
]
;
then
os_v
=
`
echo
${
llvm_vstr
}
|
awk
'{ print $7 }'
|
awk
-F
.
'{ print $1 }'
|
sed
's/x86_64-//'
`
else
os_v
=
`
echo
${
llvm_vstr
}
|
awk
'{ print $11 }'
|
awk
-F
.
'{ print $1 }'
|
sed
's/x86_64-//'
`
fi
machtype
=
${
os_v
}
-llvm
${
llvm_v
}
elif
[
$os_release
-ge
8
]
;
then
# This is 10.4 so Universal builds possible
gcc_host
=
"
${
gcc_os_vendor
}
-
${
gcc_os_name
}
"
# Note, for BSDish platforms, gcc_os_name includes a version
machtype
=
${
gcc_host
}
-gcc
${
gcc_version
}
else
# Prior to Tiger and gcc4, things were a mess...
gcc_host
=
"
${
gcc_cpu_type
}
-
${
gcc_os_vendor
}
"
machtype
=
${
gcc_host
}
-gcc
${
gcc_version
}
# Note, gcc_os_vendor in this case is actually gcc_os_name above
fi
;;
Linux
)
if
[
"
${
gcc_cpu_type
}
"
=
"x86_64"
-o
"
${
gcc_cpu_type
}
"
=
"x86-64"
]
;
then
gcc_host
=
"
${
gcc_os_name
}
_64"
elif
[
`
echo
${
gcc_cpu_type
}
|
grep
i.86
`
]
;
then
gcc_host
=
"
${
gcc_os_name
}
_32"
else
gcc_host
=
"
${
gcc_cpu_type
}
-
${
gcc_os_vendor
}
-
${
gcc_os_name
}
"
fi
machtype
=
${
gcc_host
}
-gcc
${
gcc_version
}
;;
*
)
gcc_host
=
"
${
gcc_cpu_type
}
-
${
gcc_os_vendor
}
-
${
gcc_os_name
}
"
machtype
=
${
gcc_host
}
-gcc
${
gcc_version
}
;;
esac
fi
echo
${
machtype
}
exit
0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment