OSX compile fix. (#166)

* OSX compile fix.
This commit is contained in:
djfinch 2018-09-11 11:33:29 +02:00 committed by Ben Gräf
parent e1aac6d450
commit b3a8783498

View file

@ -40,11 +40,11 @@ rapidjson::Value GPUInfo::toJson(rapidjson::MemoryPoolAllocator <rapidjson::CrtA
rapidjson::Value gpuInfo(rapidjson::kObjectType); rapidjson::Value gpuInfo(rapidjson::kObjectType);
gpuInfo.AddMember("name", rapidjson::StringRef(m_name.c_str()), allocator); gpuInfo.AddMember("name", rapidjson::StringRef(m_name.c_str()), allocator);
gpuInfo.AddMember("device_idx", m_deviceIdx, allocator); gpuInfo.AddMember("device_idx", static_cast<uint32_t>(m_deviceIdx), allocator);
gpuInfo.AddMember("raw_intensity", m_rawIntensity, allocator); gpuInfo.AddMember("raw_intensity", static_cast<uint32_t>(m_rawIntensity), allocator);
gpuInfo.AddMember("work_size", m_workSize, allocator); gpuInfo.AddMember("work_size", static_cast<uint32_t>(m_workSize), allocator);
gpuInfo.AddMember("max_work_size", m_maxWorkSize, allocator); gpuInfo.AddMember("max_work_size", static_cast<uint32_t>(m_maxWorkSize), allocator);
gpuInfo.AddMember("free_mem", m_freeMem, allocator); gpuInfo.AddMember("free_mem", static_cast<uint32_t>(m_freeMem), allocator);
gpuInfo.AddMember("mem_chunk", m_memChunk, allocator); gpuInfo.AddMember("mem_chunk", m_memChunk, allocator);
gpuInfo.AddMember("comp_mode", m_memChunk, allocator); gpuInfo.AddMember("comp_mode", m_memChunk, allocator);
gpuInfo.AddMember("compute_units", m_memChunk, allocator); gpuInfo.AddMember("compute_units", m_memChunk, allocator);