LMDB example failed on Power8 #517
Comments
Try giving it an absolute path. e.g. |
@lukeyeager $ python -u lmdb_create_example.py --output_file $(readlink -f ./example_db)
>>> Write database...
Inserted 0 rows
Inserted 16 rows
Inserted 32 rows
Inserted 48 rows
Inserted 64 rows
Inserted 80 rows
Inserted 96 rows
Inserted 112 rows
Checksum/write: 1743005
>>> Read database...
Traceback (most recent call last):
File "lmdb_create_example.py", line 108, in <module>
main()
File "lmdb_create_example.py", line 104, in main
read_db_with_caffe2(args.output_file, checksum)
File "lmdb_create_example.py", line 76, in read_db_with_caffe2
workspace.RunNetOnce(model.param_init_net)
File "/mnt/data/hma02/caffe2/usr/local/caffe2/python/workspace.py", line 161, in RunNetOnce
return C.run_net_once(StringifyProto(net))
RuntimeError: [enforce fail at db.h:174] db_. Cannot open db: /mnt/data/hma02/caffe2/tmp/practice/lmdb_caffe2/example_db of type lmdb Error from operator:
output: "dbreader_/mnt/data/hma02/caffe2/tmp/practice/lmdb_caffe2/example_db" name: "" type: "CreateDB" arg { name: "db_type" s: "lmdb" } arg { name: "db" s: "/mnt/data/hma02/caffe2/tmp/practice/lmdb_caffe2/example_db" } |
What kind of filesystem is /mnt/data? At a guess you're using NFS or some other remote filesystem; this is explicitly not supportable in LMDB. |
@hyc $ df -Th
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 243G 0 243G 0% /dev
tmpfs tmpfs 52G 19M 52G 1% /run
/dev/sda4 ext4 321G 13G 293G 5% /
tmpfs tmpfs 256G 0 256G 0% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs tmpfs 256G 0 256G 0% /sys/fs/cgroup
/dev/sdb1 xfs 447G 249G 198G 56% /scratch
/dev/sda2 ext4 923M 99M 761M 12% /boot
nas1.mlrg.soe.uoguelph.ca:/home nfs4 23T 8.1T 15T 36% /export/mlrg
tmpfs tmpfs 52G 0 52G 0% /run/user/65983
nas1.mlrg.soe.uoguelph.ca:/data nfs4 44T 29T 15T 67% /mnt/data
tmpfs tmpfs 52G 64K 52G 1% /run/user/65716
$ python -c 'import caffe2;print caffe2.__file__'
/usr/local/caffe2/__init__.pyc
$ python -u lmdb_create_example.py --output_file /scratch/example_db
>>> Write database...
Inserted 0 rows
Inserted 16 rows
Inserted 32 rows
Inserted 48 rows
Inserted 64 rows
Inserted 80 rows
Inserted 96 rows
Inserted 112 rows
Checksum/write: 1745234
>>> Read database...
Traceback (most recent call last):
File "lmdb_create_example.py", line 108, in <module>
main()
File "lmdb_create_example.py", line 104, in main
read_db_with_caffe2(args.output_file, checksum)
File "lmdb_create_example.py", line 76, in read_db_with_caffe2
workspace.RunNetOnce(model.param_init_net)
File "/usr/local/caffe2/python/workspace.py", line 161, in RunNetOnce
return C.run_net_once(StringifyProto(net))
RuntimeError: [enforce fail at db.h:174] db_. Cannot open db: /scratch/example_db of type lmdb Error from operator:
output: "dbreader_/scratch/example_db" name: "" type: "CreateDB" arg { name: "db_type" s: "lmdb" } arg { name: "db" s: "/scratch/example_db" } |
Sorry, no ideas now. Your output isn't showing the specific error code returned from the underlying system so no way to know why it's failing. |
Tried building caffe2 on x86_64 ubuntu 16 and this example works there. $ python -u lmdb_create_example.py --output_file $(readlink -f ./example_db)
>>> Write database...
Inserted 0 rows
Inserted 16 rows
Inserted 32 rows
Inserted 48 rows
Inserted 64 rows
Inserted 80 rows
Inserted 96 rows
Inserted 112 rows
Checksum/write: 1744241
>>> Read database...
Checksum/read: 1744241 |
I tried this on a
So, I updated code to use:
It worked then:
The target file system is |
Hi,
I have successfully built caffe2 on Power8 minsky. When I run the lmdb example in
caffe2/python/example
, I get the following error. Any suggestions where might be wrong? Thanks in advance.The text was updated successfully, but these errors were encountered: