Skip to content

Commit

Permalink
Rewrite NVHPC tools class
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Gracioso <[email protected]>
  • Loading branch information
lbgracioso committed Jun 17, 2024
1 parent b8d96c3 commit b60f722
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@
#ifndef CLOYSTERHPC_NVHPC_H_
#define CLOYSTERHPC_NVHPC_H_

#include "IService.h"
#include "cloysterhpc/services/IService.h"

class NVhpc : public IService {
private:
class NVhpc {
public:
void install();
void enable() override;
void disable() override;
void start() override;
void stop() override;
};

#endif // CLOYSTERHPC_NVHPC_H_
17 changes: 0 additions & 17 deletions src/services/nvhpc.cpp

This file was deleted.

12 changes: 12 additions & 0 deletions src/tools/nvhpc.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Created by Lucas Gracioso <[email protected]>
* SPDX-License-Identifier: Apache-2.0
*/

#include "cloysterhpc/tools/nvhpc.h"
#include "cloysterhpc/functions.h"

// @TODO add repo
// $ sudo dnf config-manager --add-repo
// https://developer.download.nvidia.com/hpc-sdk/rhel/nvhpc.repo
void NVhpc::install() { cloyster::runCommand("dnf -y install nvhpc-24.3"); }

0 comments on commit b60f722

Please sign in to comment.