mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-09 21:09:18 +00:00
add implementatino for GetGPULaunchConfig1D
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "common/nvgpu_dev_info.h"
|
||||
#include "target.h"
|
||||
|
||||
namespace colossalAI {
|
||||
namespace common {
|
||||
|
||||
template <typename Ret>
|
||||
class DevInfoMgr final {
|
||||
public:
|
||||
static std::unique_ptr<Ret> GetDevInfo(int device_num) const {
|
||||
return std::make_unique<Ret>(device_num);
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace common
|
||||
} // namespace colossalAI
|
@@ -105,7 +105,7 @@ class Target {
|
||||
static Target DefaultAscendTarget();
|
||||
|
||||
static Target DefaultCUDATarget() {
|
||||
return Target(OS::Linux, Arch::CUDA, BitLen::k64);
|
||||
return Target(OS::Linux, Arch::NVGPU, BitLen::k64);
|
||||
}
|
||||
|
||||
friend std::ostream& operator<<(std::ostream& os, const Target& target);
|
||||
|
Reference in New Issue
Block a user