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

[BUGZILLA #16674] Problem with functions using lapack when there are large objects in memory #6061

Open
MichaelChirico opened this issue May 18, 2020 · 0 comments

Comments

@MichaelChirico
Copy link
Owner

Hello,
In windows R3.2.3, if there are a lot / large objects in memory, eigen or chol for example return NULL. However, if a first call is made before creating the objects, it will work.
This problem has been observed on Windows Server 2012, 256Gb RAM. It doesn't happen on the same server using R2.15.3, and it doesn't happen on Linux-RHEL (R3.2.2).
Below is the code to reproduce.
Thanks.

# eigen(cbind(c(1,-1), c(-1,1)))

# if eigen is called at the beginning, it will work at the end

for(i in 1:50){
mat = as.data.frame(matrix(rnorm(1e8), ncol=1e5))
rownames(mat) = paste("row", 1:nrow(mat), sep="")
colnames(mat) = paste("col", 1:ncol(mat), sep="")
eval(parse(text=paste("mat",i,"<- mat", sep="")))
print(i)
}

eigen(cbind(c(1,-1), c(-1,1)))

m = matrix(c(5,1,1,3),2,2)
chol(m)

# if eigen has not been called at the beginning, eigen and chol return NULL
# if eigen has been called at the beginning, eigen and chol return the expected output

# sessionInfo()
# R version 3.2.3 (2015-12-10)
# Platform: x86_64-w64-mingw32/x64 (64-bit)
# Running under: Windows Server 2012 R2 x64 (build 9600)
#
# locale:
# [1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252
# [3] LC_MONETARY=French_France.1252 LC_NUMERIC=C
# [5] LC_TIME=French_France.1252
#
# attached base packages:
# [1] stats graphics grDevices utils datasets methods base


METADATA

  • Bug author - sbd3gm
  • Creation time - 2016-01-20 11:38:01 UTC
  • Bugzilla link
  • Status - UNCONFIRMED
  • Alias - None
  • Component - Low-level
  • Version - R 3.2.3
  • Hardware - x86_64/x64/amd64 (64-bit) Windows 64-bit
  • Importance - P5 major
  • Assignee - R-core
  • URL -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant