Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to Memory Manager and Garbage Collection Heuristics #1241

Merged
merged 9 commits into from
Jan 26, 2016
Merged

Updates to Memory Manager and Garbage Collection Heuristics #1241

merged 9 commits into from
Jan 26, 2016

Conversation

shehzan10
Copy link
Member

Ref #1239

  • Add getHostMemorySize and getDeviceMemorySize functions
    • Print memory size in CPU and OpenCL info
    • Change opencl::getDevice to accept id
    • Fix multi-line error strings
  • Updates to Memory Manager and Garbage Collection Heuristics
    • Add getMaxMemorySize virtual function to MemoryManager
      • Used to compute the max_bytes for each memory manager instance
    • max_bytes
      • This is now a part of memory_info
      • Gets it's size from the device memory rather than a generic size
      • For CPU and CUDA Pinned Memory, use getHostDeviceMemroy
    • MAX_BUFFERS is now 1000
  • Fix debug builds from source on Windows
  • Fix failing tests on debug builds on Windows (Fixes Tests failing in Debug Mode on Windows #1243)

Fixes #1245

pavanky and others added 2 commits January 20, 2016 16:58
- Also changed CL_TO_AF_ERROR to display OpenCL error number
* Print memory size in CPU and OpenCL info
* Change opencl::getDevice to accept id
* Fix multi-line error strings
@shehzan10 shehzan10 added this to the 3.3.0 milestone Jan 21, 2016
#endif /* sysctl and sysconf variants */

#else
return 0L; /* Unknown OS. */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably change this to a non zero value because we don't want to fail on platforms we haven't considered.

* Add getMaxMemorySize virtual function to MemoryManager
    * Used to compute the max_bytes for each memory manager instance
* max_bytes
    * This is now a part of memory_info
    * Gets it's size from the device memory rather than a generic size
    * For CPU and CUDA Pinned Memory, use getHostDeviceMemory
* Add getMaxBytes function to fetch the max_bytes of active device
* MAX_BUFFERS is now 1000

Fix missing include
@shehzan10
Copy link
Member Author

build arrayfire osx ci

/bigobj is now required for Debug builds for CPU. Since is it being used for 3
backends, it makes sense to move it into the central CMakeList
@shehzan10
Copy link
Member Author

build arrayfire windows ci

The cfd60f1 commit only affects Windows debug builds. So running only windows.

@shehzan10
Copy link
Member Author

build arrayfire windows ci

* Fix vector in fast_pyramid - use resize instead of reserve
* Fix meanshift test. Use proper types and arrays
* Fix memory leak in basic_c
* Enable solve tests that were disabled for windows opencl
@pavanky pavanky merged commit 7eb905f into arrayfire:devel Jan 26, 2016
@shehzan10 shehzan10 deleted the memory branch February 1, 2016 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants