Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/device.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef INFINI_CCL_DEVICE_H_
#define INFINI_CCL_DEVICE_H_

#include <cstdint>
#include <string>

#include "constexpr_map.h"
Expand Down Expand Up @@ -155,7 +156,7 @@ struct DevicePriority<Device::Type::kCambricon> {
static constexpr int value = 5;
};

enum class MemorySpace : uint8_t { kHost = 0, kDevice = 1, kUnknown };
enum class MemorySpace : std::uint8_t { kHost = 0, kDevice = 1, kUnknown };

template <Device::Type kDev>
MemorySpace GetMemorySpace(const void *ptr);
Expand Down
Loading