Skip to content

Commit

Permalink
Remove C Torque driver and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-eq committed May 22, 2024
1 parent 1a8f31f commit a013666
Show file tree
Hide file tree
Showing 20 changed files with 23 additions and 2,190 deletions.
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ def package_files(directory):
"ert": package_files("src/ert/gui/resources/")
+ package_files("src/ert/shared/share/")
+ ["logging/logger.conf", "logging/storage_log.conf"]
+ [
"job_queue/qstat_proxy.sh",
],
},
cmake_args=[
"-DBUILD_TESTS=OFF",
Expand Down
8 changes: 0 additions & 8 deletions src/clib/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ pybind11_add_module(
job_queue/lsf_driver.cpp
job_queue/queue_driver.cpp
job_queue/slurm_driver.cpp
job_queue/torque_driver.cpp
job_queue/spawn.cpp)

# -----------------------------------------------------------------
Expand All @@ -23,13 +22,6 @@ target_include_directories(_clib PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include"
set_target_properties(_clib PROPERTIES CXX_VISIBILITY_PRESET "default")
install(TARGETS _clib LIBRARY DESTINATION src/ert)

# This extra deploy is only for ctest to be able to locate the script, this file
# is otherwise deployed through setup.py.
file(
COPY "${CMAKE_CURRENT_SOURCE_DIR}/../../ert/job_queue/qstat_proxy.sh"
DESTINATION "${CMAKE_BINARY_DIR}/tests"
FILE_PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ)

# -----------------------------------------------------------------
# Target: 'libert.so' for use in tests
# -----------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion src/clib/lib/include/ert/job_queue/queue_driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ using job_driver_type = enum {
NULL_DRIVER = 0,
LSF_DRIVER = 1,
LOCAL_DRIVER = 2,
TORQUE_DRIVER = 4,
SLURM_DRIVER = 5
};

Expand Down
63 changes: 0 additions & 63 deletions src/clib/lib/include/ert/job_queue/torque_driver.hpp

This file was deleted.

11 changes: 0 additions & 11 deletions src/clib/lib/job_queue/queue_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <ert/job_queue/lsf_driver.hpp>
#include <ert/job_queue/queue_driver.hpp>
#include <ert/job_queue/slurm_driver.hpp>
#include <ert/job_queue/torque_driver.hpp>
#include <fmt/format.h>
#include <stdexcept>

Expand Down Expand Up @@ -92,16 +91,6 @@ queue_driver_type *queue_driver_alloc(job_driver_type type) {
driver->get_option = local_driver_get_option;
driver->data = local_driver_alloc();
break;
case TORQUE_DRIVER:
driver->submit = torque_driver_submit_job;
driver->get_status = torque_driver_get_job_status;
driver->kill_job = torque_driver_kill_job;
driver->free_job = torque_driver_free_job;
driver->free_driver = torque_driver_free_;
driver->set_option = torque_driver_set_option;
driver->get_option = torque_driver_get_option;
driver->data = torque_driver_alloc();
break;
case SLURM_DRIVER:
driver->set_option = slurm_driver_set_option;
driver->get_option = slurm_driver_get_option;
Expand Down
Loading

0 comments on commit a013666

Please sign in to comment.