mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-01 13:56:06 -04:00
Bug fixes:
--Cleaner exit on some failures. --Better reporting of OpenCL errors.
This commit is contained in:
@ -985,6 +985,39 @@ size_t OpenCLWrapper::LocalMemSize() const { return m_LocalMemSize; }
|
||||
size_t OpenCLWrapper::GlobalMemSize() const { return m_GlobalMemSize; }
|
||||
size_t OpenCLWrapper::MaxAllocSize() const { return m_MaxAllocSize; }
|
||||
|
||||
/// <summary>
|
||||
/// Clear the error report for this class as well as the global OpenCLInfo instance.
|
||||
/// </summary>
|
||||
void OpenCLWrapper::ClearErrorReport()
|
||||
{
|
||||
EmberReport::ClearErrorReport();
|
||||
m_Info->ClearErrorReport();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Concatenate and return the error report for this class and the
|
||||
/// global OpenCLInfo instance as a single string.
|
||||
/// </summary>
|
||||
/// <returns>The concatenated error report string</returns>
|
||||
string OpenCLWrapper::ErrorReportString()
|
||||
{
|
||||
auto s = EmberReport::ErrorReportString();
|
||||
return s + m_Info->ErrorReportString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Concatenate and return the error report for this class and the
|
||||
/// global OpenCLInfo instance as a vector of strings.
|
||||
/// </summary>
|
||||
/// <returns>The concatenated error report vector of strings</returns>
|
||||
vector<string> OpenCLWrapper::ErrorReport()
|
||||
{
|
||||
auto ours = EmberReport::ErrorReport();
|
||||
auto s = m_Info->ErrorReport();
|
||||
ours.insert(ours.end(), s.begin(), s.end());
|
||||
return ours;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Make even grid dimensions.
|
||||
/// The size of the blocks in terms of threads must divide evenly into the total number of threads in the grid.
|
||||
|
@ -179,6 +179,11 @@ public:
|
||||
size_t GlobalMemSize() const;
|
||||
size_t MaxAllocSize() const;
|
||||
|
||||
//Public virtual functions overridden from base classes.
|
||||
virtual void ClearErrorReport() override;
|
||||
virtual string ErrorReportString() override;
|
||||
virtual vector<string> ErrorReport() override;
|
||||
|
||||
static void MakeEvenGridDims(size_t blockW, size_t blockH, size_t& gridW, size_t& gridH);
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user