We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f54622 commit ac9043dCopy full SHA for ac9043d
src/common/sge.py
@@ -10,10 +10,13 @@
10
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
11
# See the License for the specific language governing permissions and limitations under the License.
12
13
+import platform
14
+
15
from common.utils import check_command_output, run_command
16
17
SGE_ROOT = "/opt/sge"
-SGE_BIN_PATH = SGE_ROOT + "/bin/lx-amd64"
18
+BIN_PATH_SUFFIX = "amd64" if platform.machine() == "x86_64" else "arm64"
19
+SGE_BIN_PATH = SGE_ROOT + "/bin/lx-" + BIN_PATH_SUFFIX
20
SGE_BIN_DIR = SGE_BIN_PATH + "/"
21
SGE_ENV = {"SGE_ROOT": SGE_ROOT, "PATH": "{0}/bin:{1}:/bin:/usr/bin".format(SGE_ROOT, SGE_BIN_PATH)}
22
0 commit comments